zope.app.component use of 'with' keyword breaks with Python 2.6

Bug #279978 reported by Sidnei da Silva
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope 2
Fix Released
Undecided
Unassigned
Zope 3
Fix Released
Undecided
Unassigned
zope.app.testing
Fix Released
Undecided
Unassigned

Bug Description

The summary says it all. 'with' is now a reserved keyword in Python 2.6 and generates a SyntaxError. The attached patch is a proposed fix. Not sure how to fix this in a backwards-compatible way since this is on an interface.

Revision history for this message
Sidnei da Silva (sidnei) wrote :
Revision history for this message
Philipp von Weitershausen (philikon) wrote : Re: [Bug 279978] [NEW] zope.app.component use of 'with' keyword breaks with Python 2.6

El 8 Oct 2008, a las 06:01 , Sidnei da Silva escribió:
> The summary says it all. 'with' is now a reserved keyword in Python
> 2.6
> and generates a SyntaxError. The attached patch is a proposed fix. Not
> sure how to fix this in a backwards-compatible way since this is on an
> interface.

The interface has been deprecated for a while and is slated for
removal in Zope 3.5, so it seems to me the more sensible thing to do
would be to rip it out on the trunk for the next major release of
zope.alpp.component.

Revision history for this message
Dan Korostelev (nadako) wrote :

The deprecated interface was removed and the fixed packages was released.

Changed in zope3:
status: New → Fix Released
Changed in zope.app.testing:
status: New → Fix Released
Changed in zope2:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.