From d149c447fe9d3ec359271270ed1c32c2c7da6aad Mon Sep 17 00:00:00 2001 From: Maximilian Hils Date: Wed, 25 May 2016 20:31:32 -0700 Subject: fix py3 tests --- netlib/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'netlib') diff --git a/netlib/utils.py b/netlib/utils.py index 73b2adb3..648915fa 100644 --- a/netlib/utils.py +++ b/netlib/utils.py @@ -438,7 +438,7 @@ def bytes_to_escaped_str(data): raise ValueError("data must be bytes") # We always insert a double-quote here so that we get a single-quoted string back # https://stackoverflow.com/questions/29019340/why-does-python-use-different-quotes-for-representing-strings-depending-on-their - return repr('"' + data).lstrip("b")[2:-1] + return repr(b'"' + data).lstrip("b")[2:-1] def escaped_str_to_bytes(data): -- cgit v1.2.3