This commit is contained in:
Kovid Goyal 2015-06-20 10:55:33 +05:30
parent 64590fddf7
commit b01d47d6a8

View File

@ -49,7 +49,7 @@ class Function(object):
def __repr__(self):
# For some reason x._Formals is undefined in duktape
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):
return self.func(*args, **kwargs)