fix for autocomp., was raising an error when autocompleating functions defined in the console because their file wasnt found (which is correct in this case).
This commit is contained in:
@@ -124,7 +124,7 @@ def get_argspec(func, strip_self=True, doc=None, source=None):
|
||||
if source is None:
|
||||
try:
|
||||
source = inspect.getsource(func)
|
||||
except TypeError:
|
||||
except (TypeError, IOError):
|
||||
source = ''
|
||||
if source:
|
||||
match = re.search(DEF_SOURCE % func_name, source, RE_FLAG)
|
||||
|
Reference in New Issue
Block a user