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

This commit is contained in:
Doug Blank 2015-03-13 22:09:41 -04:00
parent 6bdc7fea05
commit 4d0508e6bf

View File

@ -555,7 +555,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', '',