|
|
@ -596,8 +596,12 @@ class CallSpec(object):
|
|
|
|
self.kwargs = kwargs
|
|
|
|
self.kwargs = kwargs
|
|
|
|
|
|
|
|
|
|
|
|
def _get_name(self):
|
|
|
|
def _get_name(self):
|
|
|
|
return u'%s.%s' % (self.func.__module__,
|
|
|
|
bits = [self.func.__module__]
|
|
|
|
self.func.__name__)
|
|
|
|
if inspect.ismethod(self.func):
|
|
|
|
|
|
|
|
bits.append(getattr(self.func.__self__, '__name__', None) or
|
|
|
|
|
|
|
|
getattr(type(self.func.__self__), '__name__', None))
|
|
|
|
|
|
|
|
bits.append(self.func.__name__)
|
|
|
|
|
|
|
|
return u'.'.join(bits)
|
|
|
|
|
|
|
|
|
|
|
|
def _get_args(self):
|
|
|
|
def _get_args(self):
|
|
|
|
return u', '.join(repr(a) for a in self.args)
|
|
|
|
return u', '.join(repr(a) for a in self.args)
|
|
|
|