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

Add Python 3 required statement #755

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

elliotwutingfeng
Copy link
Contributor

From #740, Python 2 is no longer supported. This line python update_plugins.py # use python3 if python is unavailable makes it sound like this script still supports Python 2. So a Python 3 is required. statement clears up that ambiguity.


The current update_plugins.py script will not run on Python 2 because of the use of urllib.request.urlopen (Python 2 uses urllib2 module for the urlopen method), and in Python 2, urllib2.urlopen needs contextlib.closing to be used in a with clause.

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

Successfully merging this pull request may close these issues.

1 participant