summaryrefslogtreecommitdiffstats
path: root/Lib/xml/dom/domreg.py
diff options
context:
space:
mode:
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