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

Remove Python v2 guards #28

Merged
merged 1 commit into from
Oct 4, 2023
Merged

Remove Python v2 guards #28

merged 1 commit into from
Oct 4, 2023

Conversation

movermeyer
Copy link
Owner

What are you trying to accomplish?

Originally, I wasn't sure whether I'd ever support Python v2 in this library (#2). Now I'm sure that I'm not going to, so I've removed the existing guards.

What approach did you choose and why?

Removed the PY_MAJOR_VERSION guards in module.c
I didn't remove the guards in _datetimemodule.c nor timezone.c since those are effectively vendored/shared with ciso8601, so keeping the guards in makes it easier to keep those in sync.

What should reviewers focus on?

That I didn't mess up the indentation in the process.

The impact of these changes

Less code, less problems. No externally visible changes.

@movermeyer movermeyer merged commit 0ce5d38 into main Oct 4, 2023
7 checks passed
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.

1 participant