mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
Get rid of a bunch more has_key() uses. We *really* need a tool for this.
test_aepack now passes. IDLE still needs to be converted (among others).
This commit is contained in:
parent
0da7e03e12
commit
f1a69c1666
16 changed files with 109 additions and 112 deletions
|
@ -326,7 +326,7 @@ class Directory:
|
|||
file = os.path.basename(file)
|
||||
absolute = os.path.join(self.absolute, src)
|
||||
assert not re.search(r'[\?|><:/*]"', file) # restrictions on long names
|
||||
if self.keyfiles.has_key(file):
|
||||
if file in self.keyfiles:
|
||||
logical = self.keyfiles[file]
|
||||
else:
|
||||
logical = None
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue