From f922da30d3d4d6ef6ac99f65509cf243dcce1ea4 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 6 Mar 2015 23:22:40 -0500 Subject: Extract variable for error message. --- setuptools/command/easy_install.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'setuptools/command') diff --git a/setuptools/command/easy_install.py b/setuptools/command/easy_install.py index efe5f68b..9f480f05 100755 --- a/setuptools/command/easy_install.py +++ b/setuptools/command/easy_install.py @@ -341,8 +341,8 @@ class easy_install(Command): self.create_home_path() if self.install_userbase is None: - raise DistutilsPlatformError( - "User base directory is not specified") + msg = "User base directory is not specified" + raise DistutilsPlatformError(msg) self.install_base = self.install_platbase = self.install_userbase scheme_name = os.name.replace('posix', 'unix') + '_user' self.select_scheme(scheme_name) -- cgit v1.2.1