diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 14:01:53 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:46:07 -0700 |
commit | 9f0d6a1cea94ad395cba87589fd943c1f77dc18f (patch) | |
tree | 150c31cc891921047955210dbce2c88d0c685ee1 | |
parent | 36cedfde374a2643396b070d3116e4b568500e14 (diff) | |
download | fatcat-9f0d6a1cea94ad395cba87589fd943c1f77dc18f.tar.gz fatcat-9f0d6a1cea94ad395cba87589fd943c1f77dc18f.zip |
datacite importer: dateparser.date.DateDataParser()
Perhaps this was a change when upgrading 'dateparser'?
-rw-r--r-- | python/fatcat_tools/importers/datacite.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/importers/datacite.py b/python/fatcat_tools/importers/datacite.py index 6eed8991..39033429 100644 --- a/python/fatcat_tools/importers/datacite.py +++ b/python/fatcat_tools/importers/datacite.py @@ -1191,7 +1191,7 @@ def parse_single_date( return None, None, None if isinstance(value, int): value = str(value) - parser = dateparser.DateDataParser() + parser = dateparser.date.DateDataParser() try: # Results in a dict with keys: date_obj, period, locale. parse_result = parser.get_date_data(value) |