Skip to content

Commit

Permalink
fix init in py3
Browse files Browse the repository at this point in the history
  • Loading branch information
pbauer committed Sep 19, 2018
1 parent f50e596 commit 596b110
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion plone/schemaeditor/browser/schema/traversal.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@
from zope.publisher.interfaces.browser import IBrowserPublisher
from ZPublisher.BaseRequest import DefaultPublishTraverse

import six


@implementer(ISchemaContext, IBrowserPublisher)
class SchemaContext(SimpleItem):
Expand All @@ -21,7 +23,10 @@ class SchemaContext(SimpleItem):
enableFieldsets = True

def __init__(self, context, request, name=u'schema', title=None):
super(SchemaContext, self).__init__(context, request)
if six.PY2:
super(SchemaContext, self).__init__(context, request)
else:
super().__init__()
self.schema = context
self.request = request

Expand Down

0 comments on commit 596b110

Please sign in to comment.