From 99dfb5031511eb730c3397b18f2bd6e537b67e9a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Fri, 22 May 2020 16:52:38 -0700 Subject: HACK: skip pylint errors on lines that seem to be fine It seems to be an inadvertantly ugraded version of pylint saying that these lines are not-callable. --- python/fatcat_tools/harvest/doi_registrars.py | 2 +- python/fatcat_tools/harvest/oaipmh.py | 2 +- python/fatcat_tools/harvest/pubmed.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'python/fatcat_tools/harvest') diff --git a/python/fatcat_tools/harvest/doi_registrars.py b/python/fatcat_tools/harvest/doi_registrars.py index 3acb7d96..4e027738 100644 --- a/python/fatcat_tools/harvest/doi_registrars.py +++ b/python/fatcat_tools/harvest/doi_registrars.py @@ -174,7 +174,7 @@ class HarvestCrossrefWorker: def run(self, continuous=False): while True: - current = self.state.next(continuous) + current = self.state.next(continuous) # pylint: disable=not-callable if current: print("Fetching DOIs updated on {} (UTC)".format(current), file=sys.stderr) self.fetch_date(current) diff --git a/python/fatcat_tools/harvest/oaipmh.py b/python/fatcat_tools/harvest/oaipmh.py index c95f3445..af1ca0d5 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) + current = self.state.next(continuous) # pylint: disable=not-callable if current: print("Fetching DOIs updated on {} (UTC)".format(current), file=sys.stderr) self.fetch_date(current) diff --git a/python/fatcat_tools/harvest/pubmed.py b/python/fatcat_tools/harvest/pubmed.py index 3f31696e..d78045c6 100644 --- a/python/fatcat_tools/harvest/pubmed.py +++ b/python/fatcat_tools/harvest/pubmed.py @@ -144,7 +144,7 @@ class PubmedFTPWorker: if len(self.date_file_map) == 0: raise ValueError("map from dates to files should not be empty, maybe the HTML changed?") - current = self.state.next(continuous) + current = self.state.next(continuous) # pylint: disable=not-callable if current: print("Fetching citations updated on {} (UTC)".format(current), file=sys.stderr) self.fetch_date(current) -- cgit v1.2.3