summaryrefslogtreecommitdiff
path: root/Lib/xml
diff options
context:
space:
mode:
authorJack Diederich <jackdied@gmail.com>2006-11-28 19:15:13 +0000
committerJack Diederich <jackdied@gmail.com>2006-11-28 19:15:13 +0000
commitf53f3528c31c9e268b3a78be13fd95b00551730e (patch)
treed5a99a34564d567a34af81bb82e389a8f8687937 /Lib/xml
parentd4808d0fe6d4588f222fd253794644d522f66e55 (diff)
downloadcpython-f53f3528c31c9e268b3a78be13fd95b00551730e.tar.gz
- patch #1600346 submitted by Tomer Filiba
- Renamed nb_nonzero slots to nb_bool - Renamed __nonzero__ methods to __bool__ - update core, lib, docs, and tests to match
Diffstat (limited to 'Lib/xml')
-rw-r--r--Lib/xml/dom/minidom.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/xml/dom/minidom.py b/Lib/xml/dom/minidom.py
index 028e809ca3..bfdcc82c02 100644
--- a/Lib/xml/dom/minidom.py
+++ b/Lib/xml/dom/minidom.py
@@ -38,7 +38,7 @@ class Node(xml.dom.Node):
prefix = EMPTY_PREFIX # non-null only for NS elements and attributes
- def __nonzero__(self):
+ def __bool__(self):
return True
def toxml(self, encoding = None):