Commit cc37081f authored by Paul McCarthy's avatar Paul McCarthy 🚵
Browse files

Fixes to version.py docs

parent ff91db5c
...@@ -31,7 +31,7 @@ is compatible with PEP 440 (https://www.python.org/dev/peps/pep-0440/): ...@@ -31,7 +31,7 @@ is compatible with PEP 440 (https://www.python.org/dev/peps/pep-0440/):
which primarily involve bug-fixes and minor changes. which primarily involve bug-fixes and minor changes.
The sole exception to the above convention are evelopment versions, which end The sole exception to the above convention are development versions, which end
in ``'.dev'``. in ``'.dev'``.
""" """
...@@ -56,7 +56,7 @@ def parseVersionString(versionString): ...@@ -56,7 +56,7 @@ def parseVersionString(versionString):
components = versionString.split('.') components = versionString.split('.')
# Truncate after three elements - # Truncate after three elements -
# a development (unreleased0 version # a development (unreleased version
# number will end with '.dev', but # number will end with '.dev', but
# we ignore this for the purposes of # we ignore this for the purposes of
# comparison. # comparison.
...@@ -89,7 +89,7 @@ def compareVersions(v1, v2, ignorePoint=False): ...@@ -89,7 +89,7 @@ def compareVersions(v1, v2, ignorePoint=False):
- -1 if ``v1`` < ``v2`` (i.e. ``v1`` is older than ``v2``) - -1 if ``v1`` < ``v2`` (i.e. ``v1`` is older than ``v2``)
- 0 if ``v1`` == ``v2`` - 0 if ``v1`` == ``v2``
- 0 if ``v1`` > ``v2`` - 1 if ``v1`` > ``v2``
""" """
v1 = parseVersionString(v1) v1 = parseVersionString(v1)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment