Commit 1ff8cc24 authored by Martin Häcker's avatar Martin Häcker

Improving fix as per comment on pull request

parent 568afdcc
......@@ -25,10 +25,9 @@ from Products.PageTemplates.Expressions import getEngine
try:
from zope.pagetemplate.pagetemplate import _error_start
except ImportError:
if hasattr(zope.pagetemplate.pagetemplate.PageTemplate, '_error_start'):
_error_start = zope.pagetemplate.pagetemplate.PageTemplate._error_start
else:
_error_start = '<!-- Page Template Diagnostics'
_error_start = getattr(
zope.pagetemplate.pagetemplate.PageTemplate, '_error_start',
'<!-- Page Template Diagnostics')
class PageTemplate(ExtensionClass.Base,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment