# HG changeset patch # User Oleg Oshmyan # Date 1291344319 0 # Node ID ddb3e1098727ebfde75b666dffec06e78b8e7781 # Parent faf0254fe2794ff50cd8e18b2717499b4f366d00 Cleaned up next() calls diff -r faf0254fe279 -r ddb3e1098727 2.00/test-svn.py --- 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