fix #1198 - removed docoding the result

This commit is contained in:
mehdy 2015-11-29 19:20:37 +03:30
parent 44f60ba141
commit 81ad1689b9
1 changed files with 1 additions and 1 deletions

View File

@ -61,7 +61,7 @@ def create_new_paste(contents):
'expiry': '1week', 'expiry': '1week',
} }
url = 'https://bpaste.net' 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) m = re.search(r'href="/raw/(\w+)"', response)
if m: if m:
return '%s/show/%s' % (url, m.group(1)) return '%s/show/%s' % (url, m.group(1))