mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
Remove dict.has_key() usage in xml.sax to silence warnings under -3.
This commit is contained in:
parent
d9636e17cc
commit
5b3d3729ba
2 changed files with 4 additions and 4 deletions
|
@ -81,7 +81,7 @@ def make_parser(parser_list = []):
|
|||
return _create_parser(parser_name)
|
||||
except ImportError,e:
|
||||
import sys
|
||||
if sys.modules.has_key(parser_name):
|
||||
if parser_name in sys.modules:
|
||||
# The parser module was found, but importing it
|
||||
# failed unexpectedly, pass this exception through
|
||||
raise
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue