diff options
Diffstat (limited to 'Lib/xml')
-rw-r--r-- | Lib/xml/dom/minicompat.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/xml/dom/minicompat.py b/Lib/xml/dom/minicompat.py index e2a2bca..c0a797e 100644 --- a/Lib/xml/dom/minicompat.py +++ b/Lib/xml/dom/minicompat.py @@ -40,12 +40,7 @@ __all__ = ["NodeList", "EmptyNodeList", "StringTypes", "defproperty"] import xml.dom -try: - str -except NameError: - StringTypes = type(''), -else: - StringTypes = type(''), type(str('')) +StringTypes = (str,) class NodeList(list): |