aboutsummaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorYash Shete <universeyash4@gmail.com>2020-11-09 23:08:09 +0530
committerGitHub <noreply@github.com>2020-11-09 17:38:09 +0000
commit1f73c320e2921605c4963e202f6bdac1ef18f2ce (patch)
treec7f5b2c3e31f6f4615345101478f87d809afd154 /Tools
parentbpo-42294: Add borrowed/strong reference to doc glossary (GH-23206) (diff)
downloadcpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.tar.gz
cpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.tar.bz2
cpython-1f73c320e2921605c4963e202f6bdac1ef18f2ce.zip
bpo-41712: Avoid runaway regex match in upload scripts (GH-23166)
Diffstat (limited to 'Tools')
-rw-r--r--Tools/msi/purge.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/msi/purge.py b/Tools/msi/purge.py
index a8b8f4d8973..27b6b054a44 100644
--- a/Tools/msi/purge.py
+++ b/Tools/msi/purge.py
@@ -12,7 +12,7 @@ import sys
from urllib.request import *
-VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)(\w+\d+)?$')
+VERSION_RE = re.compile(r'(\d+\.\d+\.\d+)([A-Za-z_]+\d+)?$')
try:
m = VERSION_RE.match(sys.argv[1])