From 600ad67925a748200ddf21d5aeabd157d2bb3664 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 26 Oct 2021 13:35:36 -0700 Subject: start handling trivial lint cleanups: unused imports, 'is None', etc --- python/sandcrawler/grobid.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'python/sandcrawler/grobid.py') 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 -- cgit v1.2.3