Convert all tamarin python scripts to be python 2 & 3 compatible.

ASSIGNED
Assigned to

Status

ASSIGNED
8 years ago
2 years ago

People

(Reporter: cpeyer, Assigned: brbaker)

Tracking

unspecified
Q1 12 - Brannan
Bug Flags:
flashplayer-qrb +

Details

(Reporter)

Description

8 years ago
The acceptance tests run much faster on python 3.2 due to some changes to the python threading code (See Bug 629047).  In order to simplify life for everybody, we should have all the tamarin python files be py3 compatible (and still retain py 2.6+ backwards compatibility).

This work has been done for most of the test scripts (See Bugs 627832, 611312 and 627527).  The remaining work would be:

configure.py
build/*.py
core/*.py
shell/*.py
./MMgc/winmo-stacktraces.py
utils/nativegen.py

Comment 1

7 years ago
Trying to run core\builtin.py with Python 3.0, or 3.2.1 fails with

File "../utils/nativegen.py", line 1325
   print dir(name)
           ^
SyntaxError: invalid syntax  (pointer at the r of dir)

Updated

7 years ago
Flags: flashplayer-qrb?
Target Milestone: --- → Future

Updated

7 years ago
Assignee: nobody → brbaker
Status: NEW → ASSIGNED
Flags: flashplayer-qrb? → flashplayer-qrb+
Target Milestone: Future → Q1 12 - Brannan

Comment 2

7 years ago
changeset: 7318:c30bdea0d5bf
user:      Brent Baker <brbaker@adobe.com>
summary:   Bug 629085: convertAcceptanceToJunit.py script was using a deprecated in python 3.0  dict method

http://hg.mozilla.org/tamarin-redux/rev/c30bdea0d5bf
You need to log in before you can comment on or make changes to this bug.