summaryrefslogtreecommitdiffstats
path: root/Lib/xml
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2009-09-16 15:54:04 (GMT)
committerGeorg Brandl <georg@python.org>2009-09-16 15:54:04 (GMT)
commitfe99105835b59e66ca1fd53ea3f8bcec3ec7cb3c (patch)
tree5f0300442574c00e152284d0a223380f59dac6bf /Lib/xml
parent3d6575dfc85cd11473aa93a8219ac010a823919a (diff)
downloadcpython-fe99105835b59e66ca1fd53ea3f8bcec3ec7cb3c.zip
cpython-fe99105835b59e66ca1fd53ea3f8bcec3ec7cb3c.tar.gz
cpython-fe99105835b59e66ca1fd53ea3f8bcec3ec7cb3c.tar.bz2
Use true booleans and PEP8 for argdefaults.
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/dom/domreg.py2
-rw-r--r--Lib/xml/dom/minidom.py2
-rw-r--r--Lib/xml/sax/saxutils.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/Lib/xml/dom/domreg.py b/Lib/xml/dom/domreg.py
index 67e0104..cb35bb0 100644
--- a/Lib/xml/dom/domreg.py
+++ b/Lib/xml/dom/domreg.py
@@ -36,7 +36,7 @@ def _good_enough(dom, features):
return 0
return 1
-def getDOMImplementation(name = None, features = ()):
+def getDOMImplementation(name=None, features=()):
"""getDOMImplementation(name = None, features = ()) -> DOM implementation.
Return a suitable DOM implementation. The name is either
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 77a44f5..f4f4400 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -43,7 +43,7 @@ class Node(xml.dom.Node):
def __bool__(self):
return True
- def toxml(self, encoding = None):
+ def toxml(self, encoding=None):
return self.toprettyxml("", "", encoding)
def toprettyxml(self, indent="\t", newl="\n", encoding=None):
diff --git a/Lib/xml/sax/saxutils.py b/Lib/xml/sax/saxutils.py
index e5d43a5..e845015 100644
--- a/Lib/xml/sax/saxutils.py
+++ b/Lib/xml/sax/saxutils.py
@@ -268,7 +268,7 @@ class XMLFilterBase(xmlreader.XMLReader):
# --- Utility functions
-def prepare_input_source(source, base = ""):
+def prepare_input_source(source, base=""):
"""This function takes an InputSource and an optional base URL and
returns a fully resolved InputSource object ready for reading."""