Skip to content

bpo-30688: Import unicodedata only when needed#5606

Merged
serhiy-storchaka merged 1 commit intopython:masterfrom
fangyi-zhou:fix-30688-compilation
Feb 10, 2018
Merged

bpo-30688: Import unicodedata only when needed#5606
serhiy-storchaka merged 1 commit intopython:masterfrom
fangyi-zhou:fix-30688-compilation

Conversation

@fangyi-zhou
Copy link
Copy Markdown
Contributor

@fangyi-zhou fangyi-zhou commented Feb 10, 2018

Importing unicodedata in this module leads to failure in compilation.
unicodedata is unused during compilation, and is not compiled when this
file is imported. The error occurs when generating posix variables,
pprint is required. The dependency chain goes on like this:

sysconfig -> pprint -> re -> sre_compile -> sre_parse (this file)

This commits fixes compilation issues introduced by
2272cec.
(Issue 30688, PR #5588)

https://bugs.python.org/issue30688

Importing unicodedata in this module leads to failure in compilation.
unicodedata is unused during compilation, and is not compiled when this
file is imported. The error occurs when generating posix variables,
pprint is required. The dependency chain goes on like this:

sysconfig -> pprint -> re -> sre_compile -> sre_parse (this file)

This commits fixes compilation issues introduced by
2272cec.
(Issue 30688, PR #5588)
@the-knights-who-say-ni
Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

Thanks again to your contribution and we look forward to looking at it!

@fangyi-zhou fangyi-zhou changed the title sre_parse: Import unicodedata only when needed bpo-30688: Import unicodedata only when needed Feb 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip news type-bug An unexpected behavior, bug, or error

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants