summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Jones <richard@mechanicalcat.net>2013-02-06 20:06:43 +1100
committerRichard Jones <richard@mechanicalcat.net>2013-02-06 20:06:43 +1100
commit343e515f1d0dafc4f88640a5ee219fadad437614 (patch)
tree14f5f67bf65dbac3541d3dd4ab5da022071753b1
parente6b785159550896b817ef40e32cbf2651e253047 (diff)
downloaddecorator-343e515f1d0dafc4f88640a5ee219fadad437614.tar.gz
agh static analysis
-rw-r--r--gae.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/gae.py b/gae.py
index 434cee0..2fd1ba8 100644
--- a/gae.py
+++ b/gae.py
@@ -37,12 +37,15 @@ def doit(host, secret, srcdir):
file_path = os.path.abspath(os.path.join(srcdir, path))
if not file_path.startswith(srcdir):
data = ''
+ presence = 'deleted'
else:
data = open(file_path).read()
+ presence = "present"
except IOError, e:
if e.errno == errno.ENOENT:
# file has been deleted
data = ''
+ presence = 'deleted'
else:
# some other problem with file. GAE will request transfer
# again