From 5d17f5b1cbb875cc2ca28cee0942f3f92fb2a01d Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Tue, 22 May 2018 11:36:48 -0700 Subject: pyupgrade (#549) --- astroid/modutils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'astroid/modutils.py') 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: -- cgit v1.2.1