1
0
forked from VimPlug/jedi

More PEP8, minor cleanup

This commit is contained in:
Laurens Van Houtven
2013-06-22 09:54:18 +02:00
parent ae94a2cda1
commit cb4acccfe5
3 changed files with 7 additions and 3 deletions

View File

@@ -327,6 +327,7 @@ class Scope(Simple, IsScope):
return "<%s: %s@%s-%s>" % (type(self).__name__, name,
self.start_pos[0], self.end_pos[0])
def _enables_absolute_import(imp):
"""
Checks if the import is a ``__future__`` import that enables the
@@ -335,13 +336,14 @@ def _enables_absolute_import(imp):
namespace, feature = imp.from_ns.names[0], imp.namespace.names[0]
return namespace == "__future__" and feature == "absolute_import"
class Module(IsScope):
""" For isinstance checks. fast_parser.Module also inherits from this. """
pass
"""
For isinstance checks. fast_parser.Module also inherits from this.
"""
class SubModule(Scope, Module):
"""
The top scope, which is always a module.
Depending on the underlying parser this may be a full module or just a part