diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 17:55:15 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-11-02 17:55:22 -0700 |
commit | 6fa2d38be243531747241a3ae602069d507368d9 (patch) | |
tree | 7cc81446a97a372640f6a189f09b88fa466e77ce /python/fatcat_tools/cleanups | |
parent | 367b06f64546e4533662017c9dbe72aca175a294 (diff) | |
download | fatcat-6fa2d38be243531747241a3ae602069d507368d9.tar.gz fatcat-6fa2d38be243531747241a3ae602069d507368d9.zip |
lint: simple, safe inline lint fixes
'==' vs 'is'; 'not a in b' vs 'a not in b'; etc
Diffstat (limited to 'python/fatcat_tools/cleanups')
-rw-r--r-- | python/fatcat_tools/cleanups/files.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_tools/cleanups/files.py b/python/fatcat_tools/cleanups/files.py index a40e4a28..10dd45cc 100644 --- a/python/fatcat_tools/cleanups/files.py +++ b/python/fatcat_tools/cleanups/files.py @@ -27,7 +27,7 @@ class FileCleaner(EntityCleaner): """ # URL has ://web.archive.org/web/None/ link => delete URL - entity.urls = [u for u in entity.urls if not '://web.archive.org/web/None/' in u.url] + entity.urls = [u for u in entity.urls if '://web.archive.org/web/None/' not in u.url] # URL has ://archive.org/ link with rel=repository => rel=archive for u in entity.urls: |