summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-12-28 09:28:18 -0500
committerChris McDonough <chrism@plope.com>2011-12-28 09:28:18 -0500
commit5a3ddb76a7ac4ee6f41652f774e8387a8c9b131a (patch)
treef63b663fd12f45b04e11d8dcce87b570a43860bb
parentd394da5175fece8388f2fc0dfd906942faa6f2ed (diff)
downloadpyramid-5a3ddb76a7ac4ee6f41652f774e8387a8c9b131a.tar.gz
pyramid-5a3ddb76a7ac4ee6f41652f774e8387a8c9b131a.tar.bz2
pyramid-5a3ddb76a7ac4ee6f41652f774e8387a8c9b131a.zip
typo
-rw-r--r--pyramid/compat.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pyramid/compat.py b/pyramid/compat.py
index 484cb7b97..12b8c9f37 100644
--- a/pyramid/compat.py
+++ b/pyramid/compat.py
@@ -33,7 +33,7 @@ else:
def text_(s, encoding='latin-1', errors='strict'):
""" If ``s`` is an instance of ``binary_type``, return
- ``s.encode(encoding, errors)``, otherwise return ``s``"""
+ ``s.decode(encoding, errors)``, otherwise return ``s``"""
if isinstance(s, binary_type):
return s.decode(encoding, errors)
return s # pragma: no cover