diff options
author | Guido van Rossum <guido@python.org> | 2006-08-19 02:45:06 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2006-08-19 02:45:06 (GMT) |
commit | 1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b (patch) | |
tree | 99388ee6f8a2c56c4ed6808317bfa12829dd3be6 /Lib/xml/dom/domreg.py | |
parent | 5c303dec170a0c4cb278c819869e652b0832725e (diff) | |
download | cpython-1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b.zip cpython-1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b.tar.gz cpython-1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b.tar.bz2 |
Fix some more has_key() uses. This could really use a tool to automate...
Diffstat (limited to 'Lib/xml/dom/domreg.py')
-rw-r--r-- | Lib/xml/dom/domreg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/domreg.py b/Lib/xml/dom/domreg.py index 684c436..ec3acdf 100644 --- a/Lib/xml/dom/domreg.py +++ b/Lib/xml/dom/domreg.py @@ -57,7 +57,7 @@ def getDOMImplementation(name = None, features = ()): return mod.getDOMImplementation() elif name: return registered[name]() - elif os.environ.has_key("PYTHON_DOM"): + elif "PYTHON_DOM" in os.environ: return getDOMImplementation(name = os.environ["PYTHON_DOM"]) # User did not specify a name, try implementations in arbitrary |