mercurial/pycompat.py
changeset 38312 79dd61a4554f
parent 38166 cc9aa88792fe
child 38332 7b12a2d2eedc
equal deleted inserted replaced
38311:47f5454a30ed 38312:79dd61a4554f
   300         return email.parser.BytesParser(*args, **kwargs)
   300         return email.parser.BytesParser(*args, **kwargs)
   301 
   301 
   302 else:
   302 else:
   303     import cStringIO
   303     import cStringIO
   304 
   304 
       
   305     unicode = unicode
   305     bytechr = chr
   306     bytechr = chr
   306     byterepr = repr
   307     byterepr = repr
   307     bytestr = str
   308     bytestr = str
   308     iterbytestr = iter
   309     iterbytestr = iter
   309     maybebytestr = identity
   310     maybebytestr = identity