summaryrefslogtreecommitdiff
path: root/version.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2008-08-19 17:56:33 +0000
committerAntoine Pitrou <solipsis@pitrou.net>2008-08-19 17:56:33 +0000
commit9b46d3fc54dc19f29a4d7503e8c06dcfbebd7b5a (patch)
tree6affd607f6832e640abf3c3217ce2a4e629ec9ad /version.py
parentdd8e87105079fbf52d866825dc56482a40732b99 (diff)
downloadpython-setuptools-git-9b46d3fc54dc19f29a4d7503e8c06dcfbebd7b5a.tar.gz
#2834: Change re module semantics, so that str and bytes mixing is forbidden,
and str (unicode) patterns get full unicode matching by default. The re.ASCII flag is also introduced to ask for ASCII matching instead.
Diffstat (limited to 'version.py')
-rw-r--r--version.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/version.py b/version.py
index f71b2f6c..907f71c3 100644
--- a/version.py
+++ b/version.py
@@ -134,7 +134,7 @@ class StrictVersion (Version):
"""
version_re = re.compile(r'^(\d+) \. (\d+) (\. (\d+))? ([ab](\d+))?$',
- re.VERBOSE)
+ re.VERBOSE | re.ASCII)
def parse (self, vstring):