amix / vimrc

The ultimate Vim configuration (vimrc)
MIT License
30.77k stars 7.3k forks source link

Add Python 3 required statement #755

Open elliotwutingfeng opened 9 months ago

elliotwutingfeng commented 9 months ago

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.