Skip to content

Commit

Permalink
Corrected order or namespace declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
filipsalo committed Apr 11, 2010
1 parent e372c9e commit 80a008a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions streamxmlwriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,7 @@ def start(self, tag, attributes=None, nsmap=None, **kwargs):
old_namespaces = {'': None}
namespaces = old_namespaces.copy()
if nsmap:
self._new_namespaces.update(nsmap)

self._new_namespaces.update(reversed(item) for item in nsmap.iteritems())
values = self._new_namespaces.values()
for uri, prefix in namespaces.items():
if prefix in values:
Expand Down

0 comments on commit 80a008a

Please sign in to comment.