Skip to content

Commit

Permalink
Make MultiplexedPath.name a property
Browse files Browse the repository at this point in the history
Closes #216
  • Loading branch information
ap-- authored and FFY00 committed Mar 28, 2021
1 parent e05b43a commit 9822338
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions importlib_resources/readers.py
Expand Up @@ -98,6 +98,7 @@ def joinpath(self, child):
def open(self, *args, **kwargs):
raise FileNotFoundError('{} is not a file'.format(self))

@property
def name(self):
return self._paths[0].name

Expand Down

0 comments on commit 9822338

Please sign in to comment.