<div dir="ltr">hi all,<br><br> I changed the attribute 'with' in /home/zope/ztrunk26/lib/<div dir="ltr">python/RestrictedPython/Utilities.py to 'wit' and I ran the tests in python2.4 and I got the following result.<br>
<br> <br></div>Running tests at level 1<br>Running unit tests:<br> Running:<br><br> Ran 285 tests with 0 failures and 0 errors in 6.587 seconds.<br>Running Testing.ZopeTestCase.layer.ZopeLite tests:<br> Set up Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.<br>
Running:<br><br> Ran 1 tests with 0 failures and 0 errors in 0.064 seconds.<br>Tearing down left over layers:<br> Tear down Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.<br>Total: 286 tests, 0 failures, 0 errors in 1.044 seconds.<br>
<br>Can anybody tell me whether this implies it is backward compatible in python2.4?<br><br>with regards <br><br>Bristow<br><br><div class="gmail_quote">On Mon, Jul 21, 2008 at 4:43 PM, Bristow Thankachan <<a href="mailto:bristow.thankachan@gmail.com">bristow.thankachan@gmail.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div dir="ltr">Hi everybody,<div dir="ltr"></div><br><br>During the porting of Zope2 to Python2.6, I am stuck with a syntax error in the module AccessControl, which is given below.<br>
<br>def reorder(s, with=None, without=()):<br> ^<br>
SyntaxError: invalid syntax<br><br>in line 56 of /home/zope/ztrunk26/lib/python/RestrictedPython/Utilities.py.<br>The same code when run in python2.4 and python2.5 didn't give any syntax errors. Can anybody suggest the reason for this syntax error in python2.6. <br>
<br></div>
</blockquote></div><br></div>