<div dir="ltr">hi all,<br><br>&nbsp;I changed the attribute &#39;with&#39; in&nbsp;&nbsp; /home/zope/ztrunk26/lib/<div dir="ltr">python/RestrictedPython/Utilities.py&nbsp;&nbsp; to &#39;wit&#39; and I ran the tests in python2.4 and I got the following result.<br>
<br>&nbsp;<br></div>Running tests at level 1<br>Running unit tests:<br>&nbsp; Running:<br><br>&nbsp; Ran 285 tests with 0 failures and 0 errors in 6.587 seconds.<br>Running Testing.ZopeTestCase.layer.ZopeLite tests:<br>&nbsp; Set up Testing.ZopeTestCase.layer.ZopeLite in 0.000 seconds.<br>
&nbsp; Running:<br><br>&nbsp; Ran 1 tests with 0 failures and 0 errors in 0.064 seconds.<br>Tearing down left over layers:<br>&nbsp; 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 &lt;<a href="mailto:bristow.thankachan@gmail.com">bristow.thankachan@gmail.com</a>&gt; 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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^<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&#39;t give any syntax errors. Can anybody suggest&nbsp; the reason for this syntax error in python2.6.  <br>

<br></div>
</blockquote></div><br></div>