forked from VimPlug/jedi
a few pep8 improvements
This commit is contained in:
@@ -30,6 +30,7 @@ def get_sys_path():
|
|||||||
check_virtual_env(p)
|
check_virtual_env(p)
|
||||||
return p
|
return p
|
||||||
|
|
||||||
|
|
||||||
class CachedModule(object):
|
class CachedModule(object):
|
||||||
"""
|
"""
|
||||||
The base type for all modules, which is not to be confused with
|
The base type for all modules, which is not to be confused with
|
||||||
|
|||||||
@@ -304,7 +304,6 @@ class Module(Scope):
|
|||||||
self._name = Name(names, self.start_pos, self.end_pos, self)
|
self._name = Name(names, self.start_pos, self.end_pos, self)
|
||||||
return self._name
|
return self._name
|
||||||
|
|
||||||
|
|
||||||
def is_builtin(self):
|
def is_builtin(self):
|
||||||
return not (self.path is None or self.path.endswith('.py'))
|
return not (self.path is None or self.path.endswith('.py'))
|
||||||
|
|
||||||
|
|||||||
@@ -234,6 +234,7 @@ class TestFeature(Base):
|
|||||||
assert self.complete('import os; os.path.join')[0].full_name \
|
assert self.complete('import os; os.path.join')[0].full_name \
|
||||||
== 'os.path.join'
|
== 'os.path.join'
|
||||||
|
|
||||||
|
|
||||||
class TestSpeed(Base):
|
class TestSpeed(Base):
|
||||||
def _check_speed(time_per_run, number=4, run_warm=True):
|
def _check_speed(time_per_run, number=4, run_warm=True):
|
||||||
""" Speed checks should typically be very tolerant. Some machines are
|
""" Speed checks should typically be very tolerant. Some machines are
|
||||||
|
|||||||
Reference in New Issue
Block a user