Skip to content

Commit

Permalink
change: explicit cmp w/ None
Browse files Browse the repository at this point in the history
  • Loading branch information
ssato committed Apr 4, 2017
1 parent b9a3f11 commit 4f42ddb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anyconfig/backend/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ def root_to_container(root, container=dict, nspaces=None, **options):
if root is None:
return tree

if nspaces:
if nspaces is not None:
for uri, prefix in nspaces.items():
root.attrib["xmlns:" + prefix if prefix else "xmlns"] = uri

Expand Down

0 comments on commit 4f42ddb

Please sign in to comment.