forked from VimPlug/jedi
More PEP8, minor cleanup
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user