Skip to content

fix: updates to allow building the library Python 3.11 #645

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 4 commits into from
Jul 24, 2024

Conversation

abest0
Copy link
Contributor

@abest0 abest0 commented Jul 12, 2024

Description of changes:

This PR addresses a bug that occurs when building the graph-notebook with Python3.11. The Porting to Python 3.11 summary calls out a change to global inline flags so that they can only be used at the start of a regular expression.

The existing code for converting globs -> regexes appends the (?ms) modifier at the end of the pattern. This PR removes the multiline and dotall modifiers from the regex string template. Instead, it uses the multiline and dotall flags in the compile statement.

This allows the graph-notebook library to, at a minimum, build with Python3.11

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@michaelnchin michaelnchin self-requested a review July 24, 2024 03:14
Copy link
Member

@michaelnchin michaelnchin left a comment

Choose a reason for hiding this comment

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

Thanks @abest0 !

@michaelnchin michaelnchin merged commit 6331897 into aws:main Jul 24, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Resolved
Development

Successfully merging this pull request may close these issues.

2 participants