mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
SF 563203. Replaced 'has_key()' with 'in'.
This commit is contained in:
parent
9d5e4aa414
commit
54f0222547
54 changed files with 243 additions and 222 deletions
|
|
@ -396,7 +396,7 @@ class SGMLParser(markupbase.ParserBase):
|
|||
tailored by setting up the self.entitydefs mapping appropriately.
|
||||
"""
|
||||
table = self.entitydefs
|
||||
if table.has_key(name):
|
||||
if name in table:
|
||||
self.handle_data(table[name])
|
||||
else:
|
||||
self.unknown_entityref(name)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue