消息 [101779]
Lib\lib2to3\tests\data\py2_test_grammar.py, in test_with_statement, requires a variant of the with statement (multiple targets) that is not available in Python 2.6. Compiling py2_test_grammar.py raises a SyntaxError. This makes the 2.6.5 installer exit with an error message when asked to pre-compile all .pyc files, as reported in issue6716.
The fix is simply to remove the last three 'with' statements in function test_with_statement, around line 923 in Lib\lib2to3\tests\data\py2_test_grammar.py, as this is invalid code for this Python version. |
|
| 日期 |
用户 |
动作 |
参数 |
| 2010-03-27 00:49:00 | ggenellina | 修改 | recipients:
+ ggenellina |
| 2010-03-27 00:49:00 | ggenellina | 修改 | messageid: <1269650940.6.0.32953947115.issue8241@psf.upfronthosting.co.za> |
| 2010-03-27 00:48:58 | ggenellina | 链接 | issue8241 messages |
| 2010-03-27 00:48:57 | ggenellina | 创建 | |
|