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

Drop old Python checks #7316

Merged
merged 2 commits into from Oct 21, 2016
Merged

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
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?

@@ -90,7 +89,7 @@ def _get_xdg_cache_dir():

setup_cfg = os.environ.get('MPLSETUPCFG', 'setup.cfg')
if os.path.exists(setup_cfg):
if PY32min:
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.

None yet

2 participants