Optimize code
This commit is contained in:
parent
5d6b8f1273
commit
bd1b0cc533
1 changed files with 2 additions and 3 deletions
|
@ -602,9 +602,6 @@ class DownloadGen(object):
|
|||
def __iter__(self):
|
||||
return self
|
||||
|
||||
def next(self):
|
||||
return self.__next__()
|
||||
|
||||
def __next__(self):
|
||||
while True:
|
||||
if len(self.xml):
|
||||
|
@ -622,6 +619,8 @@ class DownloadGen(object):
|
|||
raise StopIteration
|
||||
LOG.debug('Waiting for download to finish')
|
||||
|
||||
next = __next__
|
||||
|
||||
def get(self, key, default=None):
|
||||
return self.attrib.get(key, default)
|
||||
|
||||
|
|
Loading…
Reference in a new issue