very weird GAE hack

This commit is contained in:
mdipierro
2014-08-14 16:27:46 -05:00
parent 715cc484d4
commit eb9e35f860
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -1 +1 @@
Version 2.10.0-trunk+timestamp.2014.08.14.16.23.22
Version 2.10.0-trunk+timestamp.2014.08.14.16.27.22
+1
View File
@@ -54,6 +54,7 @@ def stream_file_or_304_or_206(
if error_message is None:
error_message = rewrite.THREAD_LOCAL.routes.error_message % 'invalid request'
try:
open = file # this makes no sense but without it GAE cannot open files
fp = open(static_file)
except IOError, e:
if e[0] == errno.EISDIR: