Mercurial > ~astiob > upreckon > hgweb
changeset 37:ddb3e1098727
Cleaned up next() calls
author | Oleg Oshmyan <chortos@inbox.lv> |
---|---|
date | Fri, 03 Dec 2010 02:45:19 +0000 |
parents | faf0254fe279 |
children | a6d554679ce8 |
files | 2.00/test-svn.py |
diffstat | 1 files changed, 2 insertions(+), 9 deletions(-) [+] |
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