summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-11-03 14:01:53 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-11-03 16:46:07 -0700
commit9f0d6a1cea94ad395cba87589fd943c1f77dc18f (patch)
tree150c31cc891921047955210dbce2c88d0c685ee1
parent36cedfde374a2643396b070d3116e4b568500e14 (diff)
downloadfatcat-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.py2
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)