From: Oleg Broytman Date: Sat, 14 Mar 2015 02:53:55 +0000 (+0300) Subject: xml version 1.1.3: fix a minor bug in handling namespaces X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=3bb64e7b4481efafb1b0ef9d315c52b52a4eddd6;p=extfs.d.git xml version 1.1.3: fix a minor bug in handling namespaces --- diff --git a/xml b/xml index 021a9d2..4822ab8 100755 --- 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 " __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(): - 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) diff --git a/xml-ANNOUNCE b/xml-ANNOUNCE index daadbae..375a465 100644 --- a/xml-ANNOUNCE +++ b/xml-ANNOUNCE @@ -6,6 +6,9 @@ WHAT IS IT 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. diff --git a/xml-ChangeLog b/xml-ChangeLog index c4152b2..a45f890 100644 --- a/xml-ChangeLog +++ b/xml-ChangeLog @@ -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.