Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Python 3.6 support #3

Open
jm66 opened this issue Mar 12, 2018 · 2 comments
Open

Python 3.6 support #3

jm66 opened this issue Mar 12, 2018 · 2 comments

Comments

@jm66
Copy link

jm66 commented Mar 12, 2018

autoupgrade-ng==0.3.0 error on python Python 3.6.4:

  File ".../lib/python3.6/site-packages/autoupgrade/package.py", line 139, in _get_highest_version
    re.findall(pattr, html.read(), flags=re.I))
  File ".../lib/python3.6/re.py", line 222, in findall
    return _compile(pattern, flags).findall(string)
TypeError: cannot use a string pattern on a bytes-like object

@jm66
Copy link
Author

jm66 commented Apr 2, 2018

hey @vuolter any update on this?

@amorozkin
Copy link

This made it work for me:

/usr/local/lib/python3.6/site-packages/autoupgrade/package.py
139c139
<                        re.findall(pattr, html.read().decode('utf-8'), flags=re.I))
---
>                        re.findall(pattr, html.read(), flags=re.I))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants