[issue12066] Empty ('') xmlns attribute is not properly handled by xml.dom.minidom

2014-06-24 Thread Ned Deily

Ned Deily added the comment:

This problem was fixed in Python 2.7.1 by b71aaf4e7d8d for Issue5762.

--
nosy: +ned.deily
resolution:  - duplicate
stage:  - resolved
status: open - closed
superseder:  - AttributeError: 'NoneType' object has no attribute 'replace'
versions: +Python 2.7 -Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12066
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12066] Empty ('') xmlns attribute is not properly handled by xml.dom.minidom

2014-06-23 Thread Mark Lawrence

Mark Lawrence added the comment:

This works perfectly for me using 3.4.1.

--
nosy: +BreamoreBoy

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12066
___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12066] Empty ('') xmlns attribute is not properly handled by xml.dom.minidom

2011-05-13 Thread Ezio Melotti

Changes by Ezio Melotti ezio.melo...@gmail.com:


--
nosy: +ezio.melotti

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12066
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12066] Empty ('') xmlns attribute is not properly handled by xml.dom.minidom

2011-05-12 Thread Atamurad Hezretkuliyev

New submission from Atamurad Hezretkuliyev atamy...@gmail.com:

Parsing test xmlns=''/test with minidom and converting back to string 
raises an exception.

 import xml.dom.minidom
 xml.dom.minidom.parseString(test xmlns=''/test).toxml()
Traceback (most recent call last):
  File stdin, line 1, in module
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py,
 line 45, in toxml
return self.toprettyxml(, , encoding)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py,
 line 57, in toprettyxml
self.writexml(writer, , indent, newl, encoding)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py,
 line 1749, in writexml
node.writexml(writer, indent, addindent, newl)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py,
 line 812, in writexml
_write_data(writer, attrs[a_name].value)
  File 
/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/xml/dom/minidom.py,
 line 301, in _write_data
data = data.replace(, amp;).replace(, lt;)
AttributeError: 'NoneType' object has no attribute 'replace'
 

Ii am not familiar with the XML spec so I've no idea if ignoring or accepting 
empty namespace is the right thing to do. If someone advices me on how it 
should be handled, I'd like to write a patch.

--
components: Library (Lib)
messages: 135867
nosy: atamyrat
priority: normal
severity: normal
status: open
title: Empty ('') xmlns attribute is not properly handled by xml.dom.minidom
type: behavior
versions: Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12066
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com