diff options
author | Bruno Oliveira <nicoddemus@gmail.com> | 2017-07-10 17:51:59 -0300 |
---|---|---|
committer | Bruno Oliveira <nicoddemus@gmail.com> | 2017-07-10 17:51:59 -0300 |
commit | d9aaab7ab277a7a5d0716b26c728b6fc1c98469a (patch) | |
tree | 48755a9e3f88c53818ba1770844293fa210d0e88 /_pytest/compat.py | |
parent | a87f6f84cc04e2e78b564e987dfc4c240d1d1b33 (diff) | |
parent | 9e0b19cce28ae713470f143021b3ff4d83ea2bd4 (diff) | |
download | pytest-d9aaab7ab277a7a5d0716b26c728b6fc1c98469a.tar.gz |
Merge remote-tracking branch 'upstream/master' into features
Diffstat (limited to '_pytest/compat.py')
-rw-r--r-- | _pytest/compat.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/_pytest/compat.py b/_pytest/compat.py index 0554efeb7..723283d6a 100644 --- a/_pytest/compat.py +++ b/_pytest/compat.py @@ -129,7 +129,7 @@ if _PY3: STRING_TYPES = bytes, str UNICODE_TYPES = str, - def _escape_strings(val): + def _ascii_escaped(val): """If val is pure ascii, returns it as a str(). Otherwise, escapes bytes objects into a sequence of escaped bytes: @@ -163,7 +163,7 @@ else: from itertools import imap, izip # NOQA - def _escape_strings(val): + def _ascii_escaped(val): """In py2 bytes and str are the same type, so return if it's a bytes object, return it unchanged if it is a full ascii string, otherwise escape it into its binary form. |