diff options
author | bnewbold <bnewbold@archive.org> | 2019-12-16 18:47:43 +0000 |
---|---|---|
committer | bnewbold <bnewbold@archive.org> | 2019-12-16 18:47:43 +0000 |
commit | 4c4ca6e63e5a3671fa5a517cc6afda8413fe39ea (patch) | |
tree | a836df074629c8d5feecf023bf9a50631ebf91e1 | |
parent | 47eaf6ae5b46e809bd2dc9a204bfa0db8f73dc17 (diff) | |
parent | 5f38c8133864f2923447fbe3210d00499f91a09e (diff) | |
download | fatcat-4c4ca6e63e5a3671fa5a517cc6afda8413fe39ea.tar.gz fatcat-4c4ca6e63e5a3671fa5a517cc6afda8413fe39ea.zip |
Merge branch 'martin-importers-common-print-stderr' into 'master'
write diagnostic messages to stderr
See merge request webgroup/fatcat!10
-rw-r--r-- | python/fatcat_tools/importers/common.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_tools/importers/common.py b/python/fatcat_tools/importers/common.py index d51a5ff4..be5db8d8 100644 --- a/python/fatcat_tools/importers/common.py +++ b/python/fatcat_tools/importers/common.py @@ -507,7 +507,7 @@ class EntityImporter: return container_id def read_issn_map_file(self, issn_map_file): - print("Loading ISSN map file...") + print("Loading ISSN map file...", file=sys.stderr) self._issn_issnl_map = dict() for line in issn_map_file: if line.startswith("ISSN") or len(line) == 0: @@ -516,7 +516,7 @@ class EntityImporter: self._issn_issnl_map[issn] = issnl # double mapping makes lookups easy self._issn_issnl_map[issnl] = issnl - print("Got {} ISSN-L mappings.".format(len(self._issn_issnl_map))) + print("Got {} ISSN-L mappings.".format(len(self._issn_issnl_map)), file=sys.stderr) def issn2issnl(self, issn): if issn is None: |