diff options
author | ?ric Araujo <merwok@netwok.org> | 2011-10-05 01:08:51 +0200 |
---|---|---|
committer | ?ric Araujo <merwok@netwok.org> | 2011-10-05 01:08:51 +0200 |
commit | 4ae9f13581e67df33042952cedd023e3b3dded8c (patch) | |
tree | dfb641b406378d133f5555869c17d6697cd43425 /distutils2/version.py | |
parent | 70e24f0cc1081fe452f9b26613e1dbbb5eb3cf9e (diff) | |
download | disutils2-4ae9f13581e67df33042952cedd023e3b3dded8c.tar.gz |
Cosmetic fixes for whitespace and a regex.
The goal of the regex is to catch a (alpha), b (beta), c or rc
(release candidate), so the existing pattern puzzled me. Tests were
OK before and after the change.
Diffstat (limited to 'distutils2/version.py')
-rw-r--r-- | distutils2/version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/distutils2/version.py b/distutils2/version.py index 9e4a7dc..4eedb0b 100644 --- a/distutils2/version.py +++ b/distutils2/version.py @@ -253,7 +253,7 @@ def suggest_normalized_version(s): # if we have something like "b-2" or "a.2" at the end of the # version, that is pobably beta, alpha, etc # let's remove the dash or dot - rs = re.sub(r"([abc|rc])[\-\.](\d+)$", r"\1\2", rs) + rs = re.sub(r"([abc]|rc)[\-\.](\d+)$", r"\1\2", rs) # 1.0-dev-r371 -> 1.0.dev371 # 0.1-dev-r79 -> 0.1.dev79 |