mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 18:24:30 -04:00
...
This commit is contained in:
parent
64590fddf7
commit
b01d47d6a8
@ -49,7 +49,7 @@ class Function(object):
|
|||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
# For some reason x._Formals is undefined in duktape
|
# For some reason x._Formals is undefined in duktape
|
||||||
x = self.func
|
x = self.func
|
||||||
return str('function: %s(...) from file: %s' % (x.name, x.fileName))
|
return str('[Function: %s(...) from file: %s]' % (x.name, x.fileName))
|
||||||
|
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
return self.func(*args, **kwargs)
|
return self.func(*args, **kwargs)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user