diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-24 10:09:36 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2018-05-24 10:09:36 +0200 |
commit | 640ba64f5c5ea7384d6f479c070cd2f3f14f0362 (patch) | |
tree | 921314b58a3efb49fbdbf84af4c4081e676e6bbe /pylint/checkers/async.py | |
parent | 1973c8c827d069e53efaecaa1669df574714cf29 (diff) | |
download | pylint-git-640ba64f5c5ea7384d6f479c070cd2f3f14f0362.tar.gz |
Kill YES in favour of Uninferable
Diffstat (limited to 'pylint/checkers/async.py')
-rw-r--r-- | pylint/checkers/async.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pylint/checkers/async.py b/pylint/checkers/async.py index 6533576d9..54fa3fe9b 100644 --- a/pylint/checkers/async.py +++ b/pylint/checkers/async.py @@ -1,5 +1,5 @@ -# Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com> -# Copyright (c) 2017 Derek Gustafson <degustaf@gmail.com> +# Copyright (c) 2015-2016 Claudiu Popa <pcmanticore@gmail.com>
+# Copyright (c) 2017 Derek Gustafson <degustaf@gmail.com>
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
# For details: https://github.com/PyCQA/pylint/blob/master/COPYING
@@ -47,7 +47,7 @@ class AsyncChecker(checkers.BaseChecker): def visit_asyncwith(self, node):
for ctx_mgr, _ in node.items:
infered = checker_utils.safe_infer(ctx_mgr)
- if infered is None or infered is astroid.YES:
+ if infered is None or infered is astroid.Uninferable:
continue
if isinstance(infered, astroid.Instance):
|