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

Modify db package to support python3 (DM-7253) #9

Merged
merged 4 commits into from Aug 17, 2016
Merged

Conversation

andy-slac
Copy link
Contributor

No description provided.


# standard library imports
from ConfigParser import ConfigParser, NoSectionError
from configparser import ConfigParser, NoSectionError
Copy link
Member

Choose a reason for hiding this comment

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

I see that future versions of future are dropping configparser and recommending that people install the PyPI compatibility version on python 2. The alternative is to try/except:

try:
   from ConfigParser import ...
except ImportError:
   from configparser import ...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'll change that to try ... except

@andy-slac andy-slac merged commit ba1fccb into master Aug 17, 2016
@ktlim ktlim deleted the tickets/DM-7253 branch August 25, 2018 03:44
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.

None yet

2 participants