Skip to content

Commit

Permalink
Use _name_set for 'exists'
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jan 25, 2020
1 parent e618cc7 commit e59d21b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zipp.py
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ def is_file(self):
return not self.is_dir()

def exists(self):
return self.at in self.root.namelist()
return self.at in self.root._name_set()

def iterdir(self):
if not self.is_dir():
Expand Down

0 comments on commit e59d21b

Please sign in to comment.