# HG changeset patch # User Ludovic Chabant # Date 1436506245 25200 # Node ID 612ed0526afdf9dad7b9469ca4b917071939ef43 # Parent 7d868afc679123e50bee812c88565de8a3e85060 internal: Just use the plain old standard function. diff -r 7d868afc6791 -r 612ed0526afd piecrust/page.py --- 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)