mercurial/encoding.py
changeset 52643 5cc8deb96b48
parent 52639 9db77d46de79
child 52646 cb769c0ffe35
equal deleted inserted replaced
52642:73ab542565e0 52643:5cc8deb96b48
   128         return s
   128         return s
   129 
   129 
   130     if typing.TYPE_CHECKING:
   130     if typing.TYPE_CHECKING:
   131         # pseudo implementation to help pytype see localstr() constructor
   131         # pseudo implementation to help pytype see localstr() constructor
   132         def __init__(self, u: bytes, l: bytes) -> None:
   132         def __init__(self, u: bytes, l: bytes) -> None:
   133             super(localstr, self).__init__(l)
   133             super().__init__(l)
   134             self._utf8 = u
   134             self._utf8 = u
   135 
   135 
   136     def __hash__(self):
   136     def __hash__(self):
   137         return hash(self._utf8)  # avoid collisions in local string space
   137         return hash(self._utf8)  # avoid collisions in local string space
   138 
   138