diff options
| author | Georg Bernhard <gogo@bluedynamics.com> | 2020-02-14 16:31:41 +0100 |
|---|---|---|
| committer | Georg Bernhard <gogo@bluedynamics.com> | 2020-02-14 16:31:41 +0100 |
| commit | 5d5db790a9142ad63f2af76ab1e3a307ac075f03 (patch) | |
| tree | 2c6284a854dfb8d50d5c28d06dd2a5c55b3f6536 /src/zope/schema | |
| parent | 173a19e6c542ff9dd24c667e2ea66e674ddb9eb5 (diff) | |
| download | zope-schema-5d5db790a9142ad63f2af76ab1e3a307ac075f03.tar.gz | |
text_type was already imported from _compat, there is no need to repeat that
Diffstat (limited to 'src/zope/schema')
| -rw-r--r-- | src/zope/schema/_bootstrapfields.py | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/zope/schema/_bootstrapfields.py b/src/zope/schema/_bootstrapfields.py index 9411368..24f166a 100644 --- a/src/zope/schema/_bootstrapfields.py +++ b/src/zope/schema/_bootstrapfields.py @@ -532,10 +532,6 @@ class Text(MinMaxLen, Field): ... zope.schema._bootstrapinterfaces.ConstraintNotSatisfied: (u'foo spam', '') """ - try: - text_type = unicode - except NameError: - text_type = str if isinstance(value, text_type): if self.unicode_normalization: value = unicodedata.normalize(self.unicode_normalization, value) |
