Lines Matching refs:isinstance
48 if isinstance(node_or_string, basestring):
50 if isinstance(node_or_string, Expression):
53 if isinstance(node, Str):
55 elif isinstance(node, Num):
57 elif isinstance(node, Tuple):
59 elif isinstance(node, List):
61 elif isinstance(node, Dict):
64 elif isinstance(node, Name):
67 elif isinstance(node, BinOp) and \
68 isinstance(node.op, (Add, Sub)) and \
69 isinstance(node.right, Num) and \
70 isinstance(node.right.n, complex) and \
71 isinstance(node.left, Num) and \
72 isinstance(node.left.n, (int, long, float)):
75 if isinstance(node.op, Add):
93 if isinstance(node, AST):
105 elif isinstance(node, list):
108 if not isinstance(node, AST):
179 if isinstance(field, AST):
181 elif isinstance(field, list):
183 if isinstance(item, AST):
193 if not isinstance(node, (FunctionDef, ClassDef, Module)):
195 if node.body and isinstance(node.body[0], Expr) and \
196 isinstance(node.body[0].value, Str):
246 if isinstance(value, list):
248 if isinstance(item, AST):
250 elif isinstance(value, AST):
293 if isinstance(old_value, list):
296 if isinstance(value, AST):
300 elif not isinstance(value, AST):
305 elif isinstance(old_value, AST):