mercurial/scmutil.py
changeset 31419 1fc3d1f02865
parent 31349 719e64bf9ec2
child 31553 56acc4250900
equal deleted inserted replaced
31418:fb1b5cd17664 31419:1fc3d1f02865
   883         """
   883         """
   884         raise NotImplementedError
   884         raise NotImplementedError
   885 
   885 
   886     def __call__(self, func):
   886     def __call__(self, func):
   887         self.func = func
   887         self.func = func
   888         self.name = func.__name__
   888         self.name = func.__name__.encode('ascii')
   889         return self
   889         return self
   890 
   890 
   891     def __get__(self, obj, type=None):
   891     def __get__(self, obj, type=None):
   892         # if accessed on the class, return the descriptor itself.
   892         # if accessed on the class, return the descriptor itself.
   893         if obj is None:
   893         if obj is None: