summaryrefslogtreecommitdiff
path: root/Lib/xml/dom/expatbuilder.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-11-28 08:28:28 +0000
committerChristian Heimes <christian@cheimes.de>2007-11-28 08:28:28 +0000
commitc9543e42330e5f339d6419eba6a8c5a61a39aeca (patch)
treeee3c677e808d015b6c142e1cca28337e08839818 /Lib/xml/dom/expatbuilder.py
parentceee0773d262bfe876e40da927b03279ed9f8419 (diff)
downloadcpython-git-c9543e42330e5f339d6419eba6a8c5a61a39aeca.tar.gz
Removed the new module
Removed a lot of types from the 'types' module that are available through builtins.
Diffstat (limited to 'Lib/xml/dom/expatbuilder.py')
-rw-r--r--Lib/xml/dom/expatbuilder.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/xml/dom/expatbuilder.py b/Lib/xml/dom/expatbuilder.py
index fdb5598625..a5354b9351 100644
--- a/Lib/xml/dom/expatbuilder.py
+++ b/Lib/xml/dom/expatbuilder.py
@@ -918,7 +918,7 @@ def parse(file, namespaces=True):
else:
builder = ExpatBuilder()
- if isinstance(file, StringTypes):
+ if isinstance(file, str):
fp = open(file, 'rb')
try:
result = builder.parseFile(fp)
@@ -952,7 +952,7 @@ def parseFragment(file, context, namespaces=True):
else:
builder = FragmentBuilder(context)
- if isinstance(file, StringTypes):
+ if isinstance(file, str):
fp = open(file, 'rb')
try:
result = builder.parseFile(fp)