Skip to content

Commit

Permalink
text_type was already imported from _compat, there is no need to repe…
Browse files Browse the repository at this point in the history
…at that
  • Loading branch information
gogobd committed Feb 14, 2020
1 parent 173a19e commit 5d5db79
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/zope/schema/_bootstrapfields.py
Expand Up @@ -532,10 +532,6 @@ def fromUnicode(self, value):
...
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)
Expand Down

0 comments on commit 5d5db79

Please sign in to comment.