8023: HTML view fails to load; replaced file with open
This commit is contained in:
parent
ccbf763ac4
commit
d9cc3d3b0e
@ -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', '',
|
||||
|
Loading…
Reference in New Issue
Block a user