diff options
author | Clint Byrum <clint@fewbar.com> | 2015-05-15 11:35:44 -0700 |
---|---|---|
committer | Clint Byrum <clint@fewbar.com> | 2015-05-15 11:52:15 -0700 |
commit | 2b86176aafbf93c3492476069a19ee3841d562aa (patch) | |
tree | 1252581289510ac2a27fef23aef7c712f3d9fc8b /tools | |
parent | 99911f6c4c7d51071f70709e55fabcd2e6853284 (diff) | |
download | pysaml2-2b86176aafbf93c3492476069a19ee3841d562aa.tar.gz |
Remove iteritems from dict loops for python3
Python3 has removed this and made .items() a view.
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/parse_xsd2.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/parse_xsd2.py b/tools/parse_xsd2.py index b1c536fe..43c69c3d 100755 --- a/tools/parse_xsd2.py +++ b/tools/parse_xsd2.py @@ -865,7 +865,7 @@ class Simple(object): self.scoped = False self.itemType = None - for attribute, value in elem.attrib.iteritems(): + for attribute, value in iter(elem.attrib.items()): self.__setattr__(attribute, value) def collect(self, top, sup, argv=None, parent=""): @@ -1046,7 +1046,7 @@ class Complex(object): self.scoped = False self.abstract = False - for attribute, value in elem.attrib.iteritems(): + for attribute, value in iter(elem.attrib.items()): self.__setattr__(attribute, value) try: |