mercurial/encoding.py
changeset 43724 009c115eba95
parent 43723 7f51bc36194d
child 43725 da925257a39e
equal deleted inserted replaced
43723:7f51bc36194d 43724:009c115eba95
   115 class localstr(bytes):
   115 class localstr(bytes):
   116     '''This class allows strings that are unmodified to be
   116     '''This class allows strings that are unmodified to be
   117     round-tripped to the local encoding and back'''
   117     round-tripped to the local encoding and back'''
   118 
   118 
   119     def __new__(cls, u, l):
   119     def __new__(cls, u, l):
   120         # type: (Type[_Tlocalstr], Text, bytes) -> _Tlocalstr
   120         # type: (Type[_Tlocalstr], bytes, bytes) -> _Tlocalstr
   121         s = bytes.__new__(cls, l)
   121         s = bytes.__new__(cls, l)
   122         s._utf8 = u
   122         s._utf8 = u
   123         return s
   123         return s
   124 
   124 
   125     def __hash__(self):
   125     def __hash__(self):