From 4d0508e6bf00cf6d19f40b7d89d6081bbf9f7c32 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Fri, 13 Mar 2015 22:09:41 -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 2de64cf1a..eba98ab2a 100644 --- a/gramps/plugins/view/htmlrenderer.py +++ b/gramps/plugins/view/htmlrenderer.py @@ -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', '',