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)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -21,7 +21,7 @@ def follow_param(param):
|
|||||||
def search_param_in_docstr(docstr, param_str):
|
def search_param_in_docstr(docstr, param_str):
|
||||||
lines = docstr.split('\n')
|
lines = docstr.split('\n')
|
||||||
|
|
||||||
# look at #40 to see definitions of those params
|
# look at #40 to see definitions of those params
|
||||||
sphinx_comp = ':type %s:' % param_str
|
sphinx_comp = ':type %s:' % param_str
|
||||||
googley_comp = re.compile('\s*%s\s+\(([^()]+)\)' % re.escape(param_str))
|
googley_comp = re.compile('\s*%s\s+\(([^()]+)\)' % re.escape(param_str))
|
||||||
for l in lines:
|
for l in lines:
|
||||||
|
|||||||
@@ -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