diff options
author | Jack Diederich <jackdied@gmail.com> | 2006-11-28 19:15:13 +0000 |
---|---|---|
committer | Jack Diederich <jackdied@gmail.com> | 2006-11-28 19:15:13 +0000 |
commit | f53f3528c31c9e268b3a78be13fd95b00551730e (patch) | |
tree | d5a99a34564d567a34af81bb82e389a8f8687937 /Lib/xml | |
parent | d4808d0fe6d4588f222fd253794644d522f66e55 (diff) | |
download | cpython-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.py | 2 |
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): |