zope.app.component use of 'with' keyword breaks with Python 2.6
Bug #279978 reported by
Sidnei da Silva
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-
Changed in zope2: | |
status: | New → Fix Released |
To post a comment you must log in.
El 8 Oct 2008, a las 06:01 , Sidnei da Silva escribió: compatible way since this is on an
> 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-
> interface.
The interface has been deprecated for a while and is slated for component.
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.