Skip to content
Prev Previous commit
Next Next commit
Update Lib/platform.py
Co-authored-by: Nice Zombies <nineteendo19d0@gmail.com>
  • Loading branch information
corona10 and nineteendo authored May 18, 2024
commit f135b42020674de56860a74987ab75e095318290
12 changes: 6 additions & 6 deletions Lib/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -1154,12 +1154,12 @@ def _sys_version(sys_version=None):
return result

sys_version_parser = re.compile(
r'([\w.+]+)\s*' # "version<space>"
r'\(#?([^,]+)' # "(#buildno"
r'(?:,\s*([\w ]*)' # ", buildate"
r'(?:,\s*([\w :]*))?)' # ", buildtime"
r'(?:,\s*(free-threading))?\)*\s*' # ",'free-threading')<space>'"
r'\[([^\]]+)\]?', re.ASCII) #"[compiler]"
r'([\w.+]+)\s*' # "version<space>"
r'\(#?([^,]+)' # "(#buildno"
r'(?:,\s*([\w ]*)' # ", buildate"
r'(?:,\s*([\w :]*))?)?' # ", buildtime"
r'(?:,\s*(free-threading))?\)*\s*' # ",'free-threading')<space>'"
Comment thread
corona10 marked this conversation as resolved.
Outdated
r'\[([^\]]+)\]?', re.ASCII) #"[compiler]"
Comment thread
corona10 marked this conversation as resolved.
Outdated

if sys.platform.startswith('java'):
# Jython
Expand Down