8000 gh-103977: compile re expressions in platform.py only if required by eendebakpt · Pull Request #103981 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-103977: compile re expressions in platform.py only if required #103981

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 12 commits into from
Apr 30, 2023
Merged
Prev Previous commit
Next Next commit
patchcheck
  • Loading branch information
eendebakpt committed Apr 29, 2023
commit da59bfefc132fcfddb289f8ddabb7b382c6b3dc5
2 changes: 1 addition & 1 deletion Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1072,7 +1072,7 @@ def _sys_version(sys_version=None):
r'(?:,\s*([\w ]*)' # ", builddate"
r'(?:,\s*([\w :]*))?)?\)\s*' # ", buildtime)<space>"
r'\[([^\]]+)\]?', re.ASCII) # "[compiler]"

if sys.platform.startswith('java'):
# Jython
name = 'Jython'
Expand Down
3 changes: 0 additions & 3 deletions Lib/test/coding20731.py
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#coding:latin1



0