aboutsummaryrefslogtreecommitdiffstats
path: root/setuptools/command/easy_install.py
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:22:40 -0500
committerJason R. Coombs <jaraco@jaraco.com>2015-03-06 23:22:40 -0500
commitf922da30d3d4d6ef6ac99f65509cf243dcce1ea4 (patch)
treed3289b0c8ecb7aa9d0ed40ffe467925b2fdf7481 /setuptools/command/easy_install.py
parent727f1668fc61f74867cc0cfdfabdd6d23699a6d9 (diff)
downloadexternal_python_setuptools-f922da30d3d4d6ef6ac99f65509cf243dcce1ea4.tar.gz
external_python_setuptools-f922da30d3d4d6ef6ac99f65509cf243dcce1ea4.tar.bz2
external_python_setuptools-f922da30d3d4d6ef6ac99f65509cf243dcce1ea4.zip
Extract variable for error message.
Diffstat (limited to 'setuptools/command/easy_install.py')
-rwxr-xr-xsetuptools/command/easy_install.py4
1 files changed, 2 insertions, 2 deletions
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)