From 3c39cdcea55998d5d5027fa30384aec501cdbd6a Mon Sep 17 00:00:00 2001 From: Ethan Smith Date: Thu, 4 Nov 2021 20:36:29 -0700 Subject: [PATCH] Fix small error in pyinfo.py This is a follow up from https://github.com/python/mypy/pull/11444 --- mypy/pyinfo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mypy/pyinfo.py b/mypy/pyinfo.py index 42f45cbbb551b..3834c04e218e9 100644 --- a/mypy/pyinfo.py +++ b/mypy/pyinfo.py @@ -28,7 +28,7 @@ def getsitepackages(): if hasattr(site, 'getsitepackages'): res.extend(site.getsitepackages()) - if hasattr(site, 'getsitepackages') and site.ENABLE_USER_SITE: + if hasattr(site, 'getusersitepackages') and site.ENABLE_USER_SITE: res.insert(0, site.getusersitepackages()) else: from distutils.sysconfig import get_python_lib