diff options
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)) |