]> git.phdru.name Git - extfs.d.git/commitdiff
xml version 1.1.3: fix a minor bug in handling namespaces
authorOleg Broytman <phd@phdru.name>
Sat, 14 Mar 2015 02:53:55 +0000 (05:53 +0300)
committerOleg Broytman <phd@phdru.name>
Sat, 14 Mar 2015 02:53:55 +0000 (05:53 +0300)
xml
xml-ANNOUNCE
xml-ChangeLog

diff --git a/xml b/xml
index 021a9d2e462306fb798e16b1517887237553a08f..4822ab8c6005edc39c7995afe1fd856adcc62883 100755 (executable)
--- a/xml
+++ b/xml
@@ -40,7 +40,7 @@ The VFS was inspired by a FUSE xmlfs: https://github.com/halhen/xmlfs
 
 """
 
 
 """
 
-__version__ = "1.1.2"
+__version__ = "1.1.3"
 __author__ = "Oleg Broytman <phd@phdru.name>"
 __copyright__ = "Copyright (C) 2013-2015 PhiloSoft Design"
 __license__ = "GPL"
 __author__ = "Oleg Broytman <phd@phdru.name>"
 __copyright__ = "Copyright (C) 2013-2015 PhiloSoft Design"
 __license__ = "GPL"
@@ -339,8 +339,10 @@ if use_lxml:
         def ns2text(self, node):
             ns_accumulator = []
             for name, value in self._get_local_ns(node).items():
         def ns2text(self, node):
             ns_accumulator = []
             for name, value in self._get_local_ns(node).items():
-                if name is None: name = ''
-                name = name.encode(default_encoding, "replace")
+                if name:
+                    name = name.encode(default_encoding, "replace")
+                else:
+                    name = 'xmlns'
                 value = value.encode(default_encoding, "replace")
                 ns_accumulator.append("%s=%s" % (name, value))
             return '\n'.join(ns_accumulator)
                 value = value.encode(default_encoding, "replace")
                 ns_accumulator.append("%s=%s" % (name, value))
             return '\n'.join(ns_accumulator)
index daadbae18ab59d7df013cbf2711c05338f619246..375a4654251351753731d843b199766adc72632a 100644 (file)
@@ -6,6 +6,9 @@ WHAT IS IT
 
 
 WHAT'S NEW
 
 
 WHAT'S NEW
+Version 1.1.3 (2015-03-14)
+   Fix a minor bug in handling namespaces (lxml).
+
 Version 1.1.2 (2015-01-10)
    Changed link to installation instructions.
 
 Version 1.1.2 (2015-01-10)
    Changed link to installation instructions.
 
index c4152b2cdc13ed08f308fcb74357a3ef19aea6f5..a45f8902a65713cada8e3b109a1c50287931d6ce 100644 (file)
@@ -1,3 +1,7 @@
+Version 1.1.3 (2015-03-14)
+
+   Fix a minor bug in handling namespaces (lxml).
+
 Version 1.1.2 (2015-01-10)
 
    Changed link to installation instructions.
 Version 1.1.2 (2015-01-10)
 
    Changed link to installation instructions.