summaryrefslogtreecommitdiff
path: root/astroid/modutils.py
diff options
context:
space:
mode:
authorAnthony Sottile <asottile@umich.edu>2018-05-22 11:36:48 -0700
committerClaudiu Popa <pcmanticore@gmail.com>2018-05-22 20:36:48 +0200
commit5d17f5b1cbb875cc2ca28cee0942f3f92fb2a01d (patch)
tree7c9a03e938e77ffcf034c1176eaa4ae4b5d2bbca /astroid/modutils.py
parent85dce2f8830d70442b55dcb5ca3198fbafec9b50 (diff)
downloadastroid-git-5d17f5b1cbb875cc2ca28cee0942f3f92fb2a01d.tar.gz
pyupgrade (#549)
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r--astroid/modutils.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py
index 4d8dfec0..530bab5f 100644
--- a/astroid/modutils.py
+++ b/astroid/modutils.py
@@ -49,11 +49,11 @@ try:
# with the prefix from which the virtualenv was created. This throws
# off the detection logic for standard library modules, thus the
# workaround.
- STD_LIB_DIRS = set([
+ STD_LIB_DIRS = {
get_python_lib(standard_lib=True, prefix=sys.prefix),
# Take care of installations where exec_prefix != prefix.
get_python_lib(standard_lib=True, prefix=sys.exec_prefix),
- get_python_lib(standard_lib=True)])
+ get_python_lib(standard_lib=True)}
# get_python_lib(standard_lib=1) is not available on pypy, set STD_LIB_DIR to
# non-valid path, see https://bugs.pypy.org/issue1164
except DistutilsPlatformError: