Update of /cvsroot/python/python/dist/src/Lib/xml/dom In directory usw-pr-cvs1:/tmp/cvs-serv27552 Modified Files: minidom.py Log Message: Text.__init__(): Make sure the data parameter is a string (8-bit or Unicode); raise TypeError if not. This closes SF bug #126866. Index: minidom.py =================================================================== RCS file: /cvsroot/python/python/dist/src/Lib/xml/dom/minidom.py,v retrieving revision 1.18 retrieving revision 1.19 diff -C2 -r1.18 -r1.19 *** minidom.py 2000/12/31 03:50:23 1.18 --- minidom.py 2001/01/08 04:04:34 1.19 *************** *** 554,557 **** --- 554,559 ---- def __init__(self, data): + if type(data) not in _StringTypes: + raise TypeError, "node contents must be a string" Node.__init__(self) self.data = self.nodeValue = data
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4