Skip to content

Fix version check for python 3.10+#562

Merged
douglasmiller merged 1 commit into
recurly:v3-v2021-02-25from
dgilmanAIDENTIFIED:fix-for-py310
May 25, 2022
Merged

Fix version check for python 3.10+#562
douglasmiller merged 1 commit into
recurly:v3-v2021-02-25from
dgilmanAIDENTIFIED:fix-for-py310

Conversation

@dgilmanAIDENTIFIED

Copy link
Copy Markdown
Contributor

This fixes a major regression in Python 3.10+. The version check was doing string comparisons and reverting to old parsing styles. This meant that an otherwise unchanged update from Python 3.9 to Python 3.10 would have recurly emit datetime objects without the timezone, which creates consistent errors on everything that works with the recurly datetime objects as python carefully asserts when you try to use or compare naive with localized datetimes.

@douglasmiller douglasmiller added bug V4 v2021-02-25 Client labels May 25, 2022
@douglasmiller douglasmiller self-assigned this May 25, 2022

@douglasmiller douglasmiller left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

👍🏼 Thank you for identifying and fixing this issue, @dgilmanAIDENTIFIED!

@douglasmiller douglasmiller merged commit 7cee2e6 into recurly:v3-v2021-02-25 May 25, 2022
argo-recurly pushed a commit that referenced this pull request May 25, 2022
[Full Changelog](4.16.0...4.16.1)

**Merged Pull Requests**

- Fix version check for python 3.10+ [#562](#562) ([dgilmanAIDENTIFIED](https://github.com/dgilmanAIDENTIFIED))
@douglasmiller

Copy link
Copy Markdown
Contributor

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug V4 v2021-02-25 Client

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants