Skip to content

Commit

Permalink
Remove _u compat function.
Browse files Browse the repository at this point in the history
Since we no longer support 3.2 we can use the literal syntax.
  • Loading branch information
jamadden committed Aug 2, 2016
1 parent 42741cb commit 26eb217
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/zope/component/_compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@

import cPickle as _pickle

def _u(s):
return unicode(s, 'unicode_escape')

CLASS_TYPES = (type, types.ClassType)

PYTHON3 = False
Expand All @@ -31,12 +28,9 @@ def _u(s):

import pickle as _pickle

def _u(s):
return s

CLASS_TYPES = (type,)

PYTHON3 = True
PYTHON2 = False

_BLANK = _u('')
_BLANK = u''

0 comments on commit 26eb217

Please sign in to comment.