fix #1198 - removed docoding the result
This commit is contained in:
parent
44f60ba141
commit
81ad1689b9
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue