Mercurial > ~astiob > upreckon > hgweb
diff 2.00/test-svn.py @ 37:ddb3e1098727
Cleaned up next() calls
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 03 Dec 2010 02:45:19 +0000 |
parents | f90bd2d1a12b |
children | af9c45708987 |
line wrap: on
line diff
--- a/2.00/test-svn.py Fri Dec 03 02:32:06 2010 +0000 +++ b/2.00/test-svn.py Fri Dec 03 02:45:19 2010 +0000 @@ -118,20 +118,13 @@ # # Try to retrieve the first two problem names and cache them on success # globalconf.tasknames = iter(globalconf.tasknames) # try: - # try: - # first = next(globalconf.tasknames) - # except NameError: - # # Python 2.5 lacks the next() built-in - # first = globalconf.tasknames.next() + # first = next(globalconf.tasknames) # except StopIteration: # globalconf.tasknames = () # shouldprintnames = False # else: # try: - # try: - # second = next(globalconf.tasknames) - # except NameError: - # second = globalconf.tasknames.next() + # second = next(globalconf.tasknames) # except StopIteration: # globalconf.tasknames = first, # shouldprintnames = False