summaryrefslogtreecommitdiff
path: root/src/zope/schema/_compat.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/zope/schema/_compat.py')
-rw-r--r--src/zope/schema/_compat.py17
1 files changed, 1 insertions, 16 deletions
diff --git a/src/zope/schema/_compat.py b/src/zope/schema/_compat.py
index dc45ca9..8a52bfb 100644
--- a/src/zope/schema/_compat.py
+++ b/src/zope/schema/_compat.py
@@ -2,10 +2,7 @@ import sys
PY3 = sys.version_info[0] >= 3
-try:
- from collections import OrderedDict
-except ImportError: # pragma: no cover
- from ordereddict import OrderedDict
+from collections import OrderedDict
# pep 8 friendlyness
OrderedDict
@@ -13,12 +10,6 @@ OrderedDict
if PY3: # pragma: no cover
- def b(s):
- return s.encode("latin-1")
-
- def u(s):
- return s
-
string_types = str,
text_type = str
binary_type = bytes
@@ -36,12 +27,6 @@ if PY3: # pragma: no cover
else: # pragma: no cover
- def b(s):
- return s
-
- def u(s):
- return unicode(s, "unicode_escape")
-
string_types = basestring,
text_type = unicode
binary_type = str