Skip to content

Commit f4078e8

Browse files
ap--jaraco
authored andcommitted
Make MultiplexedPath.name a property
Closes #216
1 parent 1ffbf65 commit f4078e8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

importlib_resources/readers.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def joinpath(self, child):
9898
def open(self, *args, **kwargs):
9999
raise FileNotFoundError('{} is not a file'.format(self))
100100

101+
@property
101102
def name(self):
102103
return self._paths[0].name
103104

0 commit comments

Comments
 (0)