8023: HTML view fails to load; replaced file with open

This commit is contained in:
Doug Blank 2015-03-13 22:12:39 -04:00
parent ccbf763ac4
commit d9cc3d3b0e

View File

@ -557,7 +557,7 @@ class HtmlView(NavigationView):
# Now we have two views : Web and Geography, we need to create the
# startpage only once.
if not os.path.exists(filename):
ufd = file(filename, "w+")
ufd = open(filename, "w+")
ufd.write(data)
ufd.close()
return urlunsplit(('file', '',