Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
fslpy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michiel Cottaar
fslpy
Commits
cc37081f
Commit
cc37081f
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
Fixes to version.py docs
parent
ff91db5c
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
fsl/version.py
+3
-3
3 additions, 3 deletions
fsl/version.py
with
3 additions
and
3 deletions
fsl/version.py
+
3
−
3
View file @
cc37081f
...
@@ -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
d
evelopment 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 (unreleased
0
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
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment