3193: RBTools 0.5.5 drops Python 2.4 compatibility

dpr***@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 16, 2014
What version are you running?
0.5.5

What steps will reproduce the problem?
1. Byte compile rbtools using Python 2.4
2. Error will be raised on setup_repo.py

What is the expected output? What do you see instead?
  File "/usr/lib/python2.4/site-packages/rbtools/commands/setup_repo.py", line 100
    except IOError as e:
                    ^
SyntaxError: invalid syntax

What operating system are you using? What browser?
RHEL 5.9 (64-bit)

Please provide any additional information below.
This appears to be the only location in the code where new exception raising syntax is used.  Reertins this file to use the old method should bring back compatibility with Python 2.4 and later.
#1 dpr***@gmai***** (Google Code) (Is this you? Claim this profile.)
A patch has been submitted for this issue to ReviewBoard.

https://reviews.reviewboard.org/r/5267/
chipx86
#2 chipx86
Thanks for the fix.

Just an FYI, we'll soon be releasing RBTools 0.6, and we will be dropping Python 2.4 support officially.
  • +PendingReview
  • +Milestone-RBTools-Release0.5
    +Component-RBTools
david
#3 david
Fixed in rbtools release-0.5.x (216a51b). Thanks!
  • -PendingReview
    +Fixed