summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom/domreg.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2006-08-19 02:45:06 (GMT)
committerGuido van Rossum <guido@python.org>2006-08-19 02:45:06 (GMT)
commit1b01e5c706a1fd2bef24ec3e67c41b16423bcd7b (patch)
tree99388ee6f8a2c56c4ed6808317bfa12829dd3be6 /Lib/xml/dom/domreg.py
parent5c303dec170a0c4cb278c819869e652b0832725e (diff)
downloadcpython-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.py2
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