Skip to content

Commit cf72c26

Browse files
committed
fix: version checking
1 parent 43669cc commit cf72c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

nipype/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ def get_info():
6262

6363
def sys_based_cache(condition):
6464
def decorator(func):
65-
if not condition:
65+
if condition:
6666
return func
6767
else:
6868
return functools.lru_cache(func)
6969
return decorator
7070

7171

72-
@sys_based_cache(sys.version >= 3)
72+
@sys_based_cache(sys.version_info < (3,))
7373
def check_version(raise_exception=False):
7474
"""Check for the latest version of the library
7575

0 commit comments

Comments
 (0)