1
0
forked from VimPlug/jedi

fix mro usage and all the type stuff (see also my blog post about why dir is wrong). fixes #314, fixes #86

This commit is contained in:
David Halter
2013-09-13 22:47:00 +04:30
parent 70123a6499
commit 5ad12bc8aa
5 changed files with 28 additions and 10 deletions
+2 -2
View File
@@ -253,9 +253,9 @@ def _generate_code(scope, mixin_funcs={}, depth=0):
code += get_doc(scope)
# Remove some magic vars, (TODO why?)
names = set(dir(scope)) - set(['__file__', '__name__', '__doc__',
'__path__', '__package__']) \
| set(['mro'])
'__path__', '__package__'])
classes, funcs, stmts, members = get_scope_objects(names)