Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
FSL
fslpy
Commits
cc37081f
Commit
cc37081f
authored
Sep 21, 2017
by
Paul McCarthy
🚵
Browse files
Fixes to version.py docs
parent
ff91db5c
Changes
1
Hide whitespace changes
Inline
Side-by-side
fsl/version.py
View file @
cc37081f
...
...
@@ -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.
The sole exception to the above convention are evelopment versions, which end
The sole exception to the above convention are
d
evelopment versions, which end
in ``'.dev'``.
"""
...
...
@@ -56,7 +56,7 @@ def parseVersionString(versionString):
components
=
versionString
.
split
(
'.'
)
# Truncate after three elements -
# a development (unreleased
0
version
# a development (unreleased version
# number will end with '.dev', but
# we ignore this for the purposes of
# comparison.
...
...
@@ -89,7 +89,7 @@ def compareVersions(v1, v2, ignorePoint=False):
- -1 if ``v1`` < ``v2`` (i.e. ``v1`` is older than ``v2``)
- 0 if ``v1`` == ``v2``
-
0
if ``v1`` > ``v2``
-
1
if ``v1`` > ``v2``
"""
v1
=
parseVersionString
(
v1
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment