diff options
author | jortel <devnull@localhost> | 2010-05-06 23:46:09 +0000 |
---|---|---|
committer | jortel <devnull@localhost> | 2010-05-06 23:46:09 +0000 |
commit | 9eb5733b9c2364fb7696ffd0e62562cdaa054ce1 (patch) | |
tree | 89452ad7b4d17e49970d8848a7a652f3944626a2 | |
parent | 1d2817844ed94e13899f12f1a9e6d718b7d1cb8b (diff) | |
download | suds-9eb5733b9c2364fb7696ffd0e62562cdaa054ce1.tar.gz |
optimize Schema.children using set().
-rw-r--r-- | suds/xsd/sxbasic.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/suds/xsd/sxbasic.py b/suds/xsd/sxbasic.py index d6a43af..72cd324 100644 --- a/suds/xsd/sxbasic.py +++ b/suds/xsd/sxbasic.py @@ -800,7 +800,10 @@ class Factory: types[c.qname] = c for i in imports: children.remove(i) - return (children, imports, attributes, elements, types, groups, agrps) + s = set() + for c in children: + s.add(c) + return (s, imports, attributes, elements, types, groups, agrps) |