Commits

Richard Jones committed 3c26fd1

agh static analysis

Comments (0)

Files changed (1)

         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