Bad syntax in lib/python/DocumentTemplate/DT_In.py
Bug #267820 reported by
Artur Zaprzała
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 2 |
Fix Released
|
Medium
|
Tres Seaver | ||
zope.documenttemplate |
Fix Released
|
Medium
|
Tres Seaver |
Bug Description
In sort_sequence() method there is a common bug in try...except statement. There is:
try: ... except AttributeError, KeyError: ...
but it should be:
try: ... except (AttributeError, KeyError): ...
The attached patch is also for lib/python/
Changed in zope2: | |
milestone: | none → 2.12.5 |
Changed in zope2: | |
milestone: | 2.12.5 → 2.12.6 |
Changed in zope2: | |
status: | Fix Committed → Fix Released |
Changed in zope.documenttemplate: | |
status: | Confirmed → Fix Released |
To post a comment you must log in.
The first part of the patch applies to Zope2, but the second applies to the separately-releaesd (as of Zope 2.12) zope.documentte mplate.