Skip to content

Commit 474f4ad

Browse files
committed
[tools/dict_parser] Write warnings to sys.stderr
1 parent acc040d commit 474f4ad

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

odml/tools/dict_parser.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
The dict_parser module provides access to the DictWriter and DictReader class.
33
Both handle the conversion of odML documents from and to Python dictionary objects.
44
"""
5+
import sys
56

67
from .. import format as odmlfmt
78
from ..info import FORMAT_VERSION
@@ -233,7 +234,7 @@ def warn(self, msg):
233234
self.warnings.append(msg)
234235

235236
if self.show_warnings:
236-
print(msg)
237+
sys.stderr.write("Parser%s\n" % msg)
237238

238239
def to_odml(self, parsed_doc):
239240
"""

0 commit comments

Comments
 (0)