"""
-__version__ = "1.1.0"
+__version__ = "1.1.1"
__author__ = "Oleg Broytman <phd@phdru.name>"
-__copyright__ = "Copyright (C) 2013 PhiloSoft Design"
+__copyright__ = "Copyright (C) 2013, 2014 PhiloSoft Design"
__license__ = "GPL"
force_implementation = None # Can be None for default choice,
this_nsmap = node.nsmap
parent = node.getparent()
if parent is not None:
- parents_nsmap = parent.nsmap
- for key in parents_nsmap:
- del this_nsmap[key]
+ parent_nsmap = parent.nsmap
+ for key in parent_nsmap:
+ if this_nsmap[key] == parent_nsmap[key]:
+ del this_nsmap[key]
return this_nsmap
def has_ns(self, node):