1
0
forked from VimPlug/jedi

Disable analysis for now.

This commit is contained in:
Dave Halter
2014-11-13 00:28:42 +01:00
parent f0a3c37fa0
commit 2fc67b97e5

View File

@@ -74,7 +74,7 @@ class Warning(Error):
def add(evaluator, name, jedi_obj, message=None, typ=Error, payload=None):
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
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):
try:
assert False
assert len(expression_list) == 1
call = expression_list[0]
assert isinstance(call, pr.Call) and str(call.name) == 'hasattr'