Commit 9bb7e321 authored by Jason Madden's avatar Jason Madden

_interfaces.py: Format the description directly as unicode.

Avoids any conversions on Python 2.7 when zope.schema is not available.
parent a585ea1d
......@@ -27,7 +27,7 @@ except ImportError: # pragma: no cover
class _Field(Attribute):
__allowed_kw__ = ('readonly', 'min',)
def __init__(self, description, required=False, **kwargs):
description = "%s (required? %s)" % (description, required)
description = u"%s (required? %s)" % (description, required)
assert isinstance(description, _text_type)
for k in self.__allowed_kw__:
kwargs.pop(k, None)
......
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