diff options
author | Éric Araujo <merwok@netwok.org> | 2012-02-06 15:12:21 (GMT) |
---|---|---|
committer | Éric Araujo <merwok@netwok.org> | 2012-02-06 15:12:21 (GMT) |
commit | 2f8c3f7ed7efb606fa915ad1b8b183dcabf78c8f (patch) | |
tree | b931a47f3e156bd2e576eb87a9b267768c19dde5 /Lib/packaging | |
parent | 6b1aecfdbf2f76cf5547de2576f436c91c967933 (diff) | |
download | cpython-2f8c3f7ed7efb606fa915ad1b8b183dcabf78c8f.zip cpython-2f8c3f7ed7efb606fa915ad1b8b183dcabf78c8f.tar.gz cpython-2f8c3f7ed7efb606fa915ad1b8b183dcabf78c8f.tar.bz2 |
Fix typos in comments.
Reported by David-Sarah Hopwood on the Bitbucket bug tracker of
Tarek’s former verlib/distutils.version project.
Diffstat (limited to 'Lib/packaging')
-rw-r--r-- | Lib/packaging/version.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/packaging/version.py b/Lib/packaging/version.py index 7d812bb..771f8d4 100644 --- a/Lib/packaging/version.py +++ b/Lib/packaging/version.py @@ -293,12 +293,12 @@ def suggest_normalized_version(s): # The 'r' and the '-' tags are post release tags # 0.4a1.r10 -> 0.4a1.post10 - # 0.9.33-17222 -> 0.9.3.post17222 - # 0.9.33-r17222 -> 0.9.3.post17222 + # 0.9.33-17222 -> 0.9.33.post17222 + # 0.9.33-r17222 -> 0.9.33.post17222 rs = re.sub(r"\.?(r|-|-r)\.?(\d+)$", r".post\2", rs) # Clean 'r' instead of 'dev' usage: - # 0.9.33+r17222 -> 0.9.3.dev17222 + # 0.9.33+r17222 -> 0.9.33.dev17222 # 1.0dev123 -> 1.0.dev123 # 1.0.git123 -> 1.0.dev123 # 1.0.bzr123 -> 1.0.dev123 |