pyramid/compat.py | ●●●●● patch | view | raw | blame | history |
pyramid/compat.py
@@ -33,7 +33,7 @@ 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