aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_tools/harvest/oaipmh.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-05-26 19:01:28 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-05-26 19:09:55 -0700
commit670aed3800873869550b477846f48cb2b4193005 (patch)
tree46fdb09a5cfe629b2581eaf195fd93ec87b399a3 /python/fatcat_tools/harvest/oaipmh.py
parentd7ebedc840d8fe27fe0b952986ec9d9161964123 (diff)
downloadfatcat-670aed3800873869550b477846f48cb2b4193005.tar.gz
fatcat-670aed3800873869550b477846f48cb2b4193005.zip
rename HarvestState.next() to HarvestState.next_span()
"span" short for "timespan" to harvest; there may be a better name to use. Motivation for this is to work around a pylint erorr that .next() was not callable. This might be a bug with pylint, but .next() is also a very generic name.
Diffstat (limited to 'python/fatcat_tools/harvest/oaipmh.py')
-rw-r--r--python/fatcat_tools/harvest/oaipmh.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/harvest/oaipmh.py b/python/fatcat_tools/harvest/oaipmh.py
index af1ca0d5..d30f9507 100644
--- a/python/fatcat_tools/harvest/oaipmh.py
+++ b/python/fatcat_tools/harvest/oaipmh.py
@@ -98,7 +98,7 @@ class HarvestOaiPmhWorker:
def run(self, continuous=False):
while True:
- current = self.state.next(continuous) # pylint: disable=not-callable
+ current = self.state.next_span(continuous)
if current:
print("Fetching DOIs updated on {} (UTC)".format(current), file=sys.stderr)
self.fetch_date(current)