diff options
author | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 13:35:36 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2021-10-26 13:35:36 -0700 |
commit | 600ad67925a748200ddf21d5aeabd157d2bb3664 (patch) | |
tree | 89ae6bc24e6eb3821c03efd7d781430345c68aa0 /python/sandcrawler/grobid.py | |
parent | 05bd7cbcc62588e431c5efd533189e246b2a997e (diff) | |
download | sandcrawler-600ad67925a748200ddf21d5aeabd157d2bb3664.tar.gz sandcrawler-600ad67925a748200ddf21d5aeabd157d2bb3664.zip |
start handling trivial lint cleanups: unused imports, 'is None', etc
Diffstat (limited to 'python/sandcrawler/grobid.py')
-rw-r--r-- | python/sandcrawler/grobid.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/python/sandcrawler/grobid.py b/python/sandcrawler/grobid.py index 16bbb01..d0b7f7e 100644 --- a/python/sandcrawler/grobid.py +++ b/python/sandcrawler/grobid.py @@ -23,7 +23,7 @@ class GrobidClient(object): """ assert blob - if consolidate_mode == None: + if consolidate_mode is None: consolidate_mode = self.consolidate_mode try: @@ -100,8 +100,6 @@ class GrobidWorker(SandcrawlerFetchWorker): ) def process(self, record, key=None): - default_key = record['sha1hex'] - fetch_result = self.fetch_blob(record) if fetch_result['status'] != 'success': return fetch_result |