Skip to content

Commit

Permalink
Merge pull request #13 from andreif/master
Browse files Browse the repository at this point in the history
Check location in circular-importing fix
  • Loading branch information
cackharot committed Mar 1, 2016
2 parents 25f9f91 + ba82597 commit db92a1d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions suds/xsd/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,11 @@ def open_imports(self, options):
@type options: L{options.Options}
"""
for imp in self.imports:
self.__already_imported.setdefault(imp.location, 0)
if self.__already_imported[imp.location] > 1:
continue
self.__already_imported[imp.location] += 1
if imp.location:
self.__already_imported.setdefault(imp.location, 0)
if self.__already_imported[imp.location] > 1:
continue
self.__already_imported[imp.location] += 1

imported = imp.open(options)
if imported is None:
Expand Down

0 comments on commit db92a1d

Please sign in to comment.