diff options
author | Magnus Hagander | 2018-12-14 17:02:54 +0000 |
---|---|---|
committer | Magnus Hagander | 2018-12-14 17:12:07 +0000 |
commit | c6acb316aa56cc63679895a42fc493ab3aed521e (patch) | |
tree | 699d886046ce0035aa7afcd5aa237d8c9d4c30d6 /tools/deploystatic/deploystatic.py | |
parent | 3e63c99bef870e3a466f59248b338611d625f867 (diff) |
not x in y --> x not in y
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-x | tools/deploystatic/deploystatic.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py index 628ea958..31260652 100755 --- a/tools/deploystatic/deploystatic.py +++ b/tools/deploystatic/deploystatic.py @@ -234,11 +234,11 @@ def remove_unknown(knownfiles, destpath): relpath = '' for fn in filenames: f = os.path.join(relpath, fn) - if not f in knownfiles: + if f not in knownfiles: os.unlink(os.path.join(destpath, f)) for dn in subdirs: d = os.path.join(relpath, dn) - if not d in knowndirs: + if d not in knowndirs: # Remove directory recursively, since there can be nothing left # in it. shutil.rmtree(os.path.join(destpath, d)) |