changeset 458:612ed0526afd

internal: Just use the plain old standard function.
author Ludovic Chabant <ludovic@chabant.com>
date Thu, 09 Jul 2015 22:30:45 -0700
parents 7d868afc6791
children 2ef04e16f0b9
files piecrust/page.py
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/piecrust/page.py	Thu Jul 09 21:23:01 2015 -0700
+++ b/piecrust/page.py	Thu Jul 09 22:30:45 2015 -0700
@@ -1,7 +1,6 @@
 import re
 import sys
 import json
-import codecs
 import os.path
 import hashlib
 import logging
@@ -270,7 +269,7 @@
 
     # Nope, load the page from the source file.
     logger.debug("Loading page configuration from: %s" % path)
-    with codecs.open(path, 'r', 'utf-8') as fp:
+    with open(path, 'r', encoding='utf-8') as fp:
         raw = fp.read()
     header, offset = parse_config_header(raw)