diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 14:26:12 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-03 16:46:07 -0700 |
commit | b7750e4f8a3099cdd63d64506b92f26227cdcac9 (patch) | |
tree | beda97c473a50fbfe8f6fc6aa3abbe59c3447c5c | |
parent | a7337a5a4a9ca2376b392161e1caf871914b9b13 (diff) | |
download | fatcat-b7750e4f8a3099cdd63d64506b92f26227cdcac9.tar.gz fatcat-b7750e4f8a3099cdd63d64506b92f26227cdcac9.zip |
pubmed harvester: remove unused variables
-rw-r--r-- | python/fatcat_tools/harvest/pubmed.py | 4 |
1 files 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( |