mercurial/encoding.py
changeset 31774 7d2cbe11ae48
parent 31448 6419cd243017
child 32156 6c0ae9683437
equal deleted inserted replaced
31773:5646d7bcd823 31774:7d2cbe11ae48
   209 # be locale dependent (e.g. date formatting.)
   209 # be locale dependent (e.g. date formatting.)
   210 if pycompat.ispy3:
   210 if pycompat.ispy3:
   211     strtolocal = unitolocal
   211     strtolocal = unitolocal
   212     strfromlocal = unifromlocal
   212     strfromlocal = unifromlocal
   213 else:
   213 else:
   214     strtolocal = str
   214     strtolocal = pycompat.identity
   215     strfromlocal = str
   215     strfromlocal = pycompat.identity
   216 
   216 
   217 if not _nativeenviron:
   217 if not _nativeenviron:
   218     # now encoding and helper functions are available, recreate the environ
   218     # now encoding and helper functions are available, recreate the environ
   219     # dict to be exported to other modules
   219     # dict to be exported to other modules
   220     environ = dict((tolocal(k.encode(u'utf-8')), tolocal(v.encode(u'utf-8')))
   220     environ = dict((tolocal(k.encode(u'utf-8')), tolocal(v.encode(u'utf-8')))