[issue33303] ElementTree Comment text isn't escaped

2018-04-17 Thread John Burnett
New submission from John Burnett : The _serialize_xml function in ElementTree.py doesn't escape Comment.text values when writing output. This means the following code: import sys import xml.etree.ElementTree elem = xml.etree.ElementTree.Comment() elem.text = '

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
John Burnett added the comment: You're right, Vista64 is returning "win32" for the platform. And ahh, I see what I did: in Python 2.5.2, _syscmd_file wasn't using a sys.platform check. Then when I looked at the current version, I saw it was still using "/dev/null&qu

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
John Burnett added the comment: I'm not sure how you're seeing that those functions bypass external commands? I'm running Vista64, and it certainly looks like calling platform.architecture calls _syscmd_file, which then immediately calls os.popen("file %s 2> /dev/null&

[issue6479] platform.py writes to hard coded platform dependant "dev/null"

2009-07-13 Thread John Burnett
New submission from John Burnett : The functions _syscmd_uname and _syscmd_file are hard-coded to pipe stderr to "/dev/null", as opposed to os.devnull. On Windows, this has the effect of creating a file called "null" to a local "dev" directory (if the directo

[issue2922] "No windows home dir" doc error

2008-05-19 Thread John Burnett
Changes by John Burnett <[EMAIL PROTECTED]>: -- type: -> behavior __ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue2922> __ ___ Python-b

[issue2922] "No windows home dir" doc error

2008-05-19 Thread John Burnett
New submission from John Burnett <[EMAIL PROTECTED]>: http://docs.python.org/inst/alt-install-windows.html The above says "Windows has no concept of a user's home directory, and since the standard Python installation under Windows is simpler than under Unix, the --p