Bugs item #2790121, was opened at 2009-05-11 16:46 Message generated for change (Comment added) made by nicdumz You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2790121...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: interwiki Group: None
Status: Closed Resolution: Fixed
Priority: 5 Private: No Submitted By: David Crochet (crochet_david) Assigned to: Nobody/Anonymous (nobody) Summary: interwiki.py crash
Initial Comment: up to r6870, interwiki.py crach :
dcrochet@linux-fxgk:~/pywikipedia> python version.py Pywikipedia (r6751 (wikipedia.py), avr 29 2009, 16:21:41) Python 2.4.2 (#1, Jan 10 2008, 17:45:02) [GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] dcrochet@linux-fxgk:~/pywikipedia> dcrochet@linux-fxgk:~/pywikipedia> python interwiki.py -prefixindex:"user:crochet.david" File "interwiki.py", line 2129 finally: ^ SyntaxError: invalid syntax dcrochet@linux-fxgk:~/pywikipedia>
dcrochet@linux-fxgk:~/pywikipedia> python version.py Pywikipedia (r6858 (wikipedia.py), mai 08 2009, 15:23:29) Python 2.4.2 (#1, Jan 10 2008, 17:45:02) [GCC 4.1.2 20070115 (prerelease) (SUSE Linux)] dcrochet@linux-fxgk:~/pywikipedia> dcrochet@linux-fxgk:~/pywikipedia> python interwiki.py -prefixindex:"user:crochet.david" File "interwiki.py", line 2150 finally: ^ SyntaxError: invalid syntax dcrochet@linux-fxgk:~/pywikipedia>
----------------------------------------------------------------------
Comment By: NicDumZ — Nicolas Dumazet (nicdumz)
Date: 2009-05-11 18:01
Message: correct; try...except... finally is Python >= 2.5 only.
I fixed this in r6871, thanks :)
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2790121...