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
f00e96e7
"git@git.fmrib.ox.ac.uk:fsl/pytreat-practicals-2020.git" did not exist on "ede2fe12d967c83724861c1b705cc47830095692"
Commit
f00e96e7
authored
7 years ago
by
Paul McCarthy
Browse files
Options
Downloads
Patches
Plain Diff
fixes to python version check
parent
7b71792d
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/wrappers/wrapperutils.py
+2
-2
2 additions, 2 deletions
fsl/wrappers/wrapperutils.py
with
2 additions
and
2 deletions
fsl/wrappers/wrapperutils.py
+
2
−
2
View file @
f00e96e7
...
...
@@ -46,7 +46,7 @@ def _update_wrapper(wrapper, wrapped, *args, **kwargs):
wrapper
=
functools
.
update_wrapper
(
wrapper
,
wrapped
,
*
args
,
**
kwargs
)
# Python >= 3.4 does things right
if
sys
.
version_info
[
0
]
*
10
+
sys
.
version_info
[
1
]
<
3
.
4
:
if
(
sys
.
version_info
[
0
]
*
10
+
sys
.
version_info
[
1
]
)
<
34
:
wrapper
.
__wrapped__
=
wrapped
return
wrapper
...
...
@@ -57,7 +57,7 @@ def _unwrap(func):
"""
# Python >= 3.4 has an inspect.unwrap function
if
sys
.
version_info
[
0
]
*
10
+
sys
.
version_info
[
1
]
<
3
.
4
:
if
(
sys
.
version_info
[
0
]
*
10
+
sys
.
version_info
[
1
]
)
>=
34
:
return
inspect
.
unwrap
(
func
)
# Otherwise we follow the __wrapped__ chain ourselves
...
...
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