[issue24312] miniDOM._write_data() give a vague error message when the argument isn't of type str

2015-05-28 Thread Oz Tamir
New submission from Oz Tamir: In Python 3.3, 3.4 and on 3.6.0a0 (default:dfe62f685538) the following snippet: >>> from xml.dom.minidom import getDOMImplementation >>> doc = getDOMImplementation().createDocument(None, 'Issues Tracker', None) >>> tracke

[issue24312] miniDOM._write_data() give a vague error message when the argument isn't of type str

2015-05-28 Thread Oz Tamir
Oz Tamir added the comment: I created a patch that will raise a TypeError when _write_data() has recvived an argument that is not a str. I found this exception and the error message it provide to be more straight forward and helpful when encountering this error. -- keywords: +patch