Skip to content

Commit e1d0165

Browse files
committed
PY2: Import getargspec, as only args is used
1 parent 83e8912 commit e1d0165

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nitime/analysis/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11

2-
from inspect import getfullargspec
2+
try:
3+
from inspect import getfullargspec
4+
except ImportError: # PY2
5+
from inspect import getargspec as getfullargspec
36

47
from nitime import descriptors as desc
58

0 commit comments

Comments
 (0)