Fix uTorrent with Python3 (#1644)

* Remove temp workaround for Microsoft Azure python issues.
This commit is contained in:
Clinton Hall 2019-08-02 13:02:46 +12:00 committed by GitHub
commit 5714540949
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 26 deletions

View file

@ -59,7 +59,7 @@ class UTorrentClient(object):
url = urljoin(self.base_url, 'token.html')
response = self.opener.open(url)
token_re = "<div id='token' style='display:none;'>([^<>]+)</div>"
match = re.search(token_re, response.read())
match = re.search(token_re, str(response.read()))
return match.group(1)
def list(self, **kwargs):