summaryrefslogtreecommitdiff
path: root/tools/deploystatic/deploystatic.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/deploystatic/deploystatic.py')
-rwxr-xr-xtools/deploystatic/deploystatic.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/deploystatic/deploystatic.py b/tools/deploystatic/deploystatic.py
index 31260652..2ea1e417 100755
--- a/tools/deploystatic/deploystatic.py
+++ b/tools/deploystatic/deploystatic.py
@@ -118,13 +118,13 @@ class TarWrapper(object):
self.tarstruct[m.name] = m
def isdir(self, d):
- return self.tarstruct.has_key(d) and self.tarstruct[d].isdir()
+ return d in self.tarstruct and self.tarstruct[d].isdir()
def isfile(self, f):
- return self.tarstruct.has_key(f) and self.tarstruct[f].isfile()
+ return f in self.tarstruct and self.tarstruct[f].isfile()
def readfile(self, src):
- if self.tarstruct.has_key(src) and self.tarstruct[src].isfile():
+ if src in self.tarstruct and self.tarstruct[src].isfile():
return self.tarfile.extractfile(src).read()
else:
return None