forked from VimPlug/jedi
cleanup/pep8
This commit is contained in:
@@ -105,7 +105,6 @@ class Script(object):
|
|||||||
pass
|
pass
|
||||||
return [name]
|
return [name]
|
||||||
|
|
||||||
|
|
||||||
debug.speed('complete start')
|
debug.speed('complete start')
|
||||||
path = self.module.get_path_until_cursor()
|
path = self.module.get_path_until_cursor()
|
||||||
path, dot, like = self._get_completion_parts(path)
|
path, dot, like = self._get_completion_parts(path)
|
||||||
|
|||||||
@@ -46,5 +46,3 @@ class CachedMetaClass(type):
|
|||||||
@memoize_default()
|
@memoize_default()
|
||||||
def __call__(self, *args, **kwargs):
|
def __call__(self, *args, **kwargs):
|
||||||
return super(CachedMetaClass, self).__call__(*args, **kwargs)
|
return super(CachedMetaClass, self).__call__(*args, **kwargs)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -203,27 +203,6 @@ def _scan_array(arr, search_name):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
|
|
||||||
counter = 0
|
|
||||||
def dec(func):
|
|
||||||
""" TODO delete this """
|
|
||||||
def wrapper(*args, **kwargs):
|
|
||||||
global counter
|
|
||||||
element = args[0]
|
|
||||||
if isinstance(element, evaluate.Array):
|
|
||||||
stmt = element._array.parent_stmt
|
|
||||||
else:
|
|
||||||
# must be instance
|
|
||||||
stmt = element.var_args.parent_stmt
|
|
||||||
print(' ' * counter + 'recursion,', stmt)
|
|
||||||
counter += 1
|
|
||||||
res = func(*args, **kwargs)
|
|
||||||
counter -= 1
|
|
||||||
#print ' '*counter + 'end,'
|
|
||||||
return res
|
|
||||||
return wrapper
|
|
||||||
|
|
||||||
|
|
||||||
#@dec
|
|
||||||
@cache.memoize_default([])
|
@cache.memoize_default([])
|
||||||
def _check_array_additions(compare_array, module, is_list):
|
def _check_array_additions(compare_array, module, is_list):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user