aboutsummaryrefslogtreecommitdiffstats
path: root/python/sandcrawler/fileset_platforms.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2021-10-26 18:12:23 -0700
committerBryan Newbold <bnewbold@archive.org>2021-10-26 18:12:23 -0700
commit485dd2cfd120c52bbc5cc7745e44176d1003b40d (patch)
tree966bf78a4bd3cc1f6c94efb8fc3054a8a441dab0 /python/sandcrawler/fileset_platforms.py
parent7087e7f65d8b81e29af44a43c1067bb2ec618c4e (diff)
downloadsandcrawler-485dd2cfd120c52bbc5cc7745e44176d1003b40d.tar.gz
sandcrawler-485dd2cfd120c52bbc5cc7745e44176d1003b40d.zip
lint collection membership (last lint for now)
Diffstat (limited to 'python/sandcrawler/fileset_platforms.py')
-rw-r--r--python/sandcrawler/fileset_platforms.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/sandcrawler/fileset_platforms.py b/python/sandcrawler/fileset_platforms.py
index 6d66d81..b6808b5 100644
--- a/python/sandcrawler/fileset_platforms.py
+++ b/python/sandcrawler/fileset_platforms.py
@@ -369,7 +369,7 @@ class FigshareHelper(FilesetPlatformHelper):
platform_domain = components.netloc.split(':')[0].lower()
# only work with full, versioned figshare.com URLs
- if not 'figshare.com' in platform_domain:
+ if 'figshare.com' not in platform_domain:
return False
try:
@@ -537,7 +537,7 @@ class ZenodoHelper(FilesetPlatformHelper):
platform_id = components.path.split('/')[2]
assert platform_id.isdigit(), f"expected numeric: {platform_id}"
- if not 'zenodo.org' in platform_domain:
+ if 'zenodo.org' not in platform_domain:
raise PlatformScopeError(f"unexpected zenodo.org domain: {platform_domain}")
# 2. API fetch