From b7750e4f8a3099cdd63d64506b92f26227cdcac9 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Wed, 3 Nov 2021 14:26:12 -0700 Subject: pubmed harvester: remove unused variables --- python/fatcat_tools/harvest/pubmed.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/fatcat_tools/harvest/pubmed.py b/python/fatcat_tools/harvest/pubmed.py index d904144b..560427fb 100644 --- a/python/fatcat_tools/harvest/pubmed.py +++ b/python/fatcat_tools/harvest/pubmed.py @@ -330,14 +330,14 @@ def ftpretr_via_http_proxy( 2021-10-15; just switch to NIH's http version). """ parsed = urlparse(url) - server, path = parsed.netloc, parsed.path + _, path = parsed.netloc, parsed.path for i in range(max_retries): try: url = "http://{}{}".format(proxy_hostport, path) print("retrieving file via proxy (ftpup) from {}".format(url), file=sys.stderr) with tempfile.NamedTemporaryFile(prefix="fatcat-ftp-tmp-", delete=False) as f: cmd = ["wget", "-c", url, "-O", f.name] - result = subprocess.run(cmd) + subprocess.run(cmd) return f.name except (subprocess.CalledProcessError, OSError, ValueError) as exc: print( -- cgit v1.2.3