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 support for legacy Python 2.7 #153

Merged
merged 8 commits into from Jun 20, 2019
Merged

Drop support for legacy Python 2.7 #153

merged 8 commits into from Jun 20, 2019

Conversation

hugovk
Copy link
Contributor

@hugovk hugovk commented Jun 18, 2019

Fixes #120.

@hugovk hugovk mentioned this pull request Jun 18, 2019
ah_bootstrap.py Outdated Show resolved Hide resolved
@cbanek cbanek added this to the v1.0 milestone Jun 19, 2019
@cbanek
Copy link
Contributor

cbanek commented Jun 19, 2019

First off, thank you so much for your contribution. I really appreciate it! I'm not an expert in python2 to python3 migrations, but I'll review it. It also looks like we should probably add an entry to the CHANGES.rst (that's what the bot is complaining about). Feel free to add that in.

@cbanek cbanek requested a review from a team June 19, 2019 21:04
Copy link
Contributor

@cbanek cbanek left a comment

Choose a reason for hiding this comment

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

All this looks very good and consistent to me. Please add a CHANGES.rst note that we're dropping python2 and that should make the bot green. Since this is a pretty big change, and I'm not a python expert or anything, does anyone else want to chime in on this?

@@ -18,14 +12,14 @@
__all__ = "STRING BINARY NUMBER DATETIME ROWID".split()


class Error(StandardError):
class Error(Exception):
Copy link
Member

Choose a reason for hiding this comment

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

beyond the scope of this PR, but I'm not sure what use of these base classes have, why not use the standard python Warning and a sensible Exception class to subclass from?

Copy link
Member

@bsipocz bsipocz left a comment

Choose a reason for hiding this comment

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

Changes look good.

@bsipocz
Copy link
Member

bsipocz commented Jun 19, 2019

I suspect there may be some other stuff that can be cleaned up (there is always), but all changes here looks good.

@cbanek
Copy link
Contributor

cbanek commented Jun 19, 2019

Okay everything seems good once we get a changes.rst entry!

@hugovk
Copy link
Contributor Author

hugovk commented Jun 20, 2019

CHANGES.rst updated!

@cbanek
Copy link
Contributor

cbanek commented Jun 20, 2019

Awesome, thanks so much for your help!

@cbanek cbanek merged commit 4df4ab5 into astropy:master Jun 20, 2019
@hugovk hugovk deleted the rm-2 branch June 21, 2019 06:28
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.

Dropping python 2
3 participants