Skip to content

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants