From d9cc3d3b0ea1e1cc7b70b1c0ef043a1b4f51a272 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 13 Mar 2015 22:12:39 -0400 Subject: [PATCH] 8023: HTML view fails to load; replaced file with open --- gramps/plugins/view/htmlrenderer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gramps/plugins/view/htmlrenderer.py b/gramps/plugins/view/htmlrenderer.py index c2b821dcb..a2b754f62 100644 --- a/gramps/plugins/view/htmlrenderer.py +++ b/gramps/plugins/view/htmlrenderer.py @@ -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', '',