equal
deleted
inserted
replaced
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: |