diff --git a/wcs/qommon/pages.py b/wcs/qommon/pages.py index b13ccfea3..5b4764e65 100644 --- a/wcs/qommon/pages.py +++ b/wcs/qommon/pages.py @@ -37,7 +37,6 @@ class PagesDirectory(Directory): page_file = os.path.join(pages_dir, component) if not os.path.exists(page_file): raise errors.TraversalError() - content = file(page_file).read() + content = open(page_file).read() template.html_top() return content -