forked from VimPlug/jedi
Disable analysis for now.
This commit is contained in:
@@ -74,7 +74,7 @@ class Warning(Error):
|
|||||||
|
|
||||||
def add(evaluator, name, jedi_obj, message=None, typ=Error, payload=None):
|
def add(evaluator, name, jedi_obj, message=None, typ=Error, payload=None):
|
||||||
exception = CODES[name][1]
|
exception = CODES[name][1]
|
||||||
if _check_for_exception_catch(evaluator, jedi_obj, exception, payload):
|
if True or _check_for_exception_catch(evaluator, jedi_obj, exception, payload):
|
||||||
return
|
return
|
||||||
|
|
||||||
module_path = jedi_obj.get_parent_until().path
|
module_path = jedi_obj.get_parent_until().path
|
||||||
@@ -157,7 +157,6 @@ def _check_for_exception_catch(evaluator, jedi_obj, exception, payload=None):
|
|||||||
|
|
||||||
def check_hasattr(node):
|
def check_hasattr(node):
|
||||||
try:
|
try:
|
||||||
assert False
|
|
||||||
assert len(expression_list) == 1
|
assert len(expression_list) == 1
|
||||||
call = expression_list[0]
|
call = expression_list[0]
|
||||||
assert isinstance(call, pr.Call) and str(call.name) == 'hasattr'
|
assert isinstance(call, pr.Call) and str(call.name) == 'hasattr'
|
||||||
|
|||||||
Reference in New Issue
Block a user