From 81ad1689b9961973c66d8454c03fe283b1973725 Mon Sep 17 00:00:00 2001 From: mehdy Date: Sun, 29 Nov 2015 19:20:37 +0330 Subject: [PATCH] fix #1198 - removed docoding the result --- _pytest/pastebin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_pytest/pastebin.py b/_pytest/pastebin.py index 0b662c62b..02af6987a 100644 --- a/_pytest/pastebin.py +++ b/_pytest/pastebin.py @@ -61,7 +61,7 @@ def create_new_paste(contents): 'expiry': '1week', } url = 'https://bpaste.net' - response = urlopen(url, data=urlencode(params).encode()).read().decode() + response = urlopen(url, data=urlencode(params).encode()).read() m = re.search(r'href="/raw/(\w+)"', response) if m: return '%s/show/%s' % (url, m.group(1))