summaryrefslogtreecommitdiff
path: root/tools/deploystatic/deploystatic.py
diff options
context:
space:
mode:
authorMagnus Hagander2018-12-14 17:02:54 +0000
committerMagnus Hagander2018-12-14 17:12:07 +0000
commitc6acb316aa56cc63679895a42fc493ab3aed521e (patch)
tree699d886046ce0035aa7afcd5aa237d8c9d4c30d6 /tools/deploystatic/deploystatic.py
parent3e63c99bef870e3a466f59248b338611d625f867 (diff)
not x in y --> x not in y
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-xtools/deploystatic/deploystatic.py4
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))