Skip to content

Commit 26f6f0a

Browse files
committed
FIX: Filename is no longer stored with the file objects, use our own copy
1 parent f4e3ae7 commit 26f6f0a

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

nibabel/openers.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -158,10 +158,7 @@ def name(self):
158158
self._name will be None if object was created with a fileobj, otherwise
159159
it will be the filename.
160160
"""
161-
try:
162-
return self.fobj.name
163-
except AttributeError:
164-
return self._name
161+
return self._name
165162

166163
@property
167164
def mode(self):

0 commit comments

Comments
 (0)