diff options
author | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-09-17 10:09:44 +0200 |
---|---|---|
committer | Pierre Sassoulas <pierre.sassoulas@gmail.com> | 2021-09-17 10:15:56 +0200 |
commit | a59b1cf97a5da7288d8e71791d6b2723df84cc11 (patch) | |
tree | f141f736b3d5f4223e4564b7109a2cf942fb2512 /astroid/builder.py | |
parent | 00f16490985f057b0ac030cfda34df965779d6e2 (diff) | |
download | astroid-git-a59b1cf97a5da7288d8e71791d6b2723df84cc11.tar.gz |
Fix all R6201: Consider using set for membership
Following the upgrade to pylint 2.11.1
Diffstat (limited to 'astroid/builder.py')
-rw-r--r-- | astroid/builder.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/builder.py b/astroid/builder.py index d88d20cf..916cd534 100644 --- a/astroid/builder.py +++ b/astroid/builder.py @@ -88,7 +88,7 @@ class AstroidBuilder(raw_building.InspectBuilder): path = getattr(module, "__file__", None) if path is not None: path_, ext = os.path.splitext(modutils._path_from_filename(path)) - if ext in (".py", ".pyc", ".pyo") and os.path.exists(path_ + ".py"): + if ext in {".py", ".pyc", ".pyo"} and os.path.exists(path_ + ".py"): node = self.file_build(path_ + ".py", modname) if node is None: # this is a built-in module |