Skip to content

Commit

Permalink
Remove unused compat aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Jul 23, 2015
1 parent af14550 commit 7dcbc2c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions supervisor/compat.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,12 @@
if PY3: # pragma: no cover
long = int
basestring = str
unichr = chr
raw_input = input
class unicode(str):
def __init__(self, string, encoding, errors):
str.__init__(self, string)
def as_bytes(s): return s if isinstance(s,bytes) else s.encode('utf8')
def as_string(s): return s if isinstance(s,str) else s.decode('utf8')
from functools import reduce

else: # pragma: no cover
long = long
Expand All @@ -22,7 +20,6 @@ def as_string(s): return s if isinstance(s,str) else s.decode('utf8')
basestring = basestring
def as_bytes(s): return s if isinstance(s, str) else s.encode('utf-8')
def as_string(s): return s if isinstance(s, unicode) else s.decode('utf-8')
reduce = reduce

def total_ordering(cls): # pragma: no cover
"""Class decorator that fills in missing ordering methods"""
Expand Down

0 comments on commit 7dcbc2c

Please sign in to comment.