Bug #1560617: in pyclbr, return full module name not only for classes,

but also for functions.
This commit is contained in:
Georg Brandl 2006-09-30 11:06:47 +00:00
parent 05b3c450a8
commit 154324a8c3
3 changed files with 7 additions and 1 deletions

View file

@ -172,7 +172,7 @@ def _readmodule(module, path, inpackage=None):
# else it's a nested def
else:
# it's a function
dict[meth_name] = Function(module, meth_name, file, lineno)
dict[meth_name] = Function(fullmodule, meth_name, file, lineno)
stack.append((None, thisindent)) # Marker for nested fns
elif token == 'class':
lineno, thisindent = start