Skip to content

don't import enum in Python 2 #1724

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

Merged
merged 2 commits into from
Nov 10, 2017
Merged

don't import enum in Python 2 #1724

merged 2 commits into from
Nov 10, 2017

Conversation

JelleZijlstra
Copy link
Member

Fixes a pytype issue from #1720.

Fixes a pytype issue from #1720.
import sys
if sys.version_info >= (3,):
from enum import Enum

Copy link
Contributor

Choose a reason for hiding this comment

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

Move the definition of PlistFormat below into this "if" block, so you have all Enum related code in one block?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@matthiaskramm matthiaskramm merged commit 97be335 into master Nov 10, 2017
@JelleZijlstra JelleZijlstra deleted the plistlib-enum branch November 10, 2017 18:25
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.

2 participants