# HG changeset patch # User Ludovic Chabant # Date 1460870002 25200 # Node ID 76a799eae8241b8116a2b4db055a8b94bfa96b67 # Parent 3e404902286972858130778f6739e5ec3d94e32f internal: Fix compatibility with older Python 3.x. diff -r 3e4049022869 -r 76a799eae824 piecrust/fastpickle.py --- a/piecrust/fastpickle.py Sat Apr 16 22:12:51 2016 -0700 +++ b/piecrust/fastpickle.py Sat Apr 16 22:13:22 2016 -0700 @@ -24,7 +24,7 @@ def unpickle_fromb(buf, bufsize): with buf.getbuffer() as innerbuf: - data = codecs.decode(innerbuf[:bufsize], encoding='utf8') + data = codecs.decode(innerbuf[:bufsize], 'utf8') data = json.loads(data) return _unpickle_object(data)