mirror of
https://github.com/davidhalter/jedi.git
synced 2025-12-08 14:54:47 +08:00
pep8 compatibility
This commit is contained in:
@@ -18,7 +18,8 @@ class RecursionDecorator(object):
|
||||
# Don't check param instances, they are not causing recursions
|
||||
# The same's true for the builtins, because the builtins are really
|
||||
# simple.
|
||||
if isinstance(stmt, parsing.Param) or r.script == builtin.Builtin.scope:
|
||||
if isinstance(stmt, parsing.Param) \
|
||||
or r.script == builtin.Builtin.scope:
|
||||
return self.func(stmt, *args, **kwargs)
|
||||
|
||||
if self.check_recursion(r):
|
||||
@@ -42,6 +43,7 @@ class RecursionDecorator(object):
|
||||
self.top = None
|
||||
self.current = None
|
||||
|
||||
|
||||
class RecursionNode(object):
|
||||
def __init__(self, stmt, parent):
|
||||
self.script = stmt.get_parent_until()
|
||||
@@ -60,6 +62,7 @@ def fast_parent_copy(obj):
|
||||
"""
|
||||
new_elements = {}
|
||||
classes = (parsing.Call, parsing.Scope)
|
||||
|
||||
def recursion(obj):
|
||||
new_obj = copy.copy(obj)
|
||||
new_elements[obj] = new_obj
|
||||
@@ -84,6 +87,7 @@ def fast_parent_copy(obj):
|
||||
return copied_list
|
||||
return recursion(obj)
|
||||
|
||||
|
||||
def generate_param_array(args_tuple, parent_stmt=None):
|
||||
""" This generates an array, that can be used as a param """
|
||||
values = []
|
||||
|
||||
Reference in New Issue
Block a user