We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf2ad0d commit 388daaeCopy full SHA for 388daae
nibabel/openers.py
@@ -71,7 +71,7 @@ def _gzip_open(fileish, mode='rb', compresslevel=9):
71
72
# is this a file? if not we assume it is a string
73
is_file = (hasattr(fileish, 'read') and hasattr(fileish, 'write') and
74
- hasattr(fileish, 'mode')
+ hasattr(fileish, 'mode'))
75
76
# If we've been given a file object, we can't change its mode.
77
if is_file:
0 commit comments