summaryrefslogtreecommitdiff
path: root/astroid/builder.py
diff options
context:
space:
mode:
authorPierre Sassoulas <pierre.sassoulas@gmail.com>2021-09-17 10:09:44 +0200
committerPierre Sassoulas <pierre.sassoulas@gmail.com>2021-09-17 10:15:56 +0200
commita59b1cf97a5da7288d8e71791d6b2723df84cc11 (patch)
treef141f736b3d5f4223e4564b7109a2cf942fb2512 /astroid/builder.py
parent00f16490985f057b0ac030cfda34df965779d6e2 (diff)
downloadastroid-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.py2
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