diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-27 00:53:51 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2015-01-27 00:53:51 +0200 |
commit | c522dc2ae790d5cebeb2d65f1e81b93a8be40027 (patch) | |
tree | 835cb432a1bdbdd7ec77cd5e05962d08106f8b85 /astroid/modutils.py | |
parent | d8a7f2ef95ca4bd807e1cb21fc9c0c961eab4bcf (diff) | |
download | astroid-c522dc2ae790d5cebeb2d65f1e81b93a8be40027.tar.gz |
Minimal syntactic compatibility with Python 2.6. Closes issue #76.
Diffstat (limited to 'astroid/modutils.py')
-rw-r--r-- | astroid/modutils.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/modutils.py b/astroid/modutils.py index 68a2086..c547f3e 100644 --- a/astroid/modutils.py +++ b/astroid/modutils.py @@ -65,11 +65,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 = { + STD_LIB_DIRS = set([ 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)]) if os.name == 'nt': STD_LIB_DIRS.add(os.path.join(sys.prefix, 'dlls')) try: |