Merge pull request #1923 from robinvandernoord/patch-1

Changed file to open
This commit is contained in:
mdipierro
2018-06-01 12:41:40 -05:00
committed by GitHub
+1 -1
View File
@@ -392,7 +392,7 @@ def wsgibase(environ, responder):
elif not request.is_local and exists(disabled):
five0three = os.path.join(request.folder, 'static', '503.html')
if os.path.exists(five0three):
raise HTTP(503, file(five0three, 'r').read())
raise HTTP(503, open(five0three, 'r').read())
else:
raise HTTP(503, "<html><body><h1>Temporarily down for maintenance</h1></body></html>")