Merge remote-tracking branch 'upstream/master' into features

This commit is contained in:
Bruno Oliveira
2017-07-10 17:51:59 -03:00
9 changed files with 27 additions and 17 deletions
+2 -2
View File
@@ -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.