Use true booleans and PEP8 for argdefaults.

This commit is contained in:
Georg Brandl 2009-09-16 15:54:04 +00:00
parent 3d6575dfc8
commit fe99105835
9 changed files with 21 additions and 21 deletions

View file

@ -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

View file

@ -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):