Skip to content

Conversation

@QuLogic
Copy link
Member

@QuLogic QuLogic commented Oct 21, 2016

#5373 raised minimum Python to 2.7 or 3.4+. A lot of try/except stuff was removed, but explicit checks of sys.version_info were not.

@QuLogic QuLogic added the Build label Oct 21, 2016
@QuLogic QuLogic added this to the 2.0 (style change major release) milestone Oct 21, 2016
if PY3min:
from urllib.request import urlretrieve
else:
from urllib import urlretrieve
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not six.moves.urllib.request.urlretrieve?

if PY3min:
config = configparser.ConfigParser()
else:
config = configparser.SafeConfigParser()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not six.moves.configparser.SafeConfigParser?

@QuLogic
Copy link
Member Author

QuLogic commented Oct 21, 2016

I don't think we can rely on six in setup.py (which uses setupext.py.)

Copy link
Member

@Kojoley Kojoley left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, yeah.

@Kojoley Kojoley merged commit ea98cb5 into matplotlib:v2.x Oct 21, 2016
@QuLogic QuLogic deleted the drop-old-python-checks branch October 22, 2016 00:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants