diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-31 21:36:23 -0500 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2016-01-31 21:36:23 -0500 |
| commit | f9bd9b9f5df54ef5a0bf8d16c3a889ab8c640580 (patch) | |
| tree | 76f4fc58837b62f1052c73c61cf927c07522717f /pkg_resources/__init__.py | |
| parent | 0dcee791dfdcfacddaaec79b29f30a347a147413 (diff) | |
| download | python-setuptools-git-f9bd9b9f5df54ef5a0bf8d16c3a889ab8c640580.tar.gz | |
Use new style string formatting
Diffstat (limited to 'pkg_resources/__init__.py')
| -rw-r--r-- | pkg_resources/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py index 4fdc5f91..d04cd347 100644 --- a/pkg_resources/__init__.py +++ b/pkg_resources/__init__.py @@ -1180,17 +1180,17 @@ class ResourceManager: The following error occurred while trying to extract file(s) to the Python egg cache: - %s + {old_exc} The Python egg cache directory is currently set to: - %s + {cache_path} Perhaps your account does not have write access to this directory? You can change the cache directory by setting the PYTHON_EGG_CACHE environment variable to point to an accessible directory. """).lstrip() - err = ExtractionError(tmpl % (old_exc, cache_path)) + err = ExtractionError(tmpl.format(**locals())) err.manager = self err.cache_path = cache_path err.original_error = old_exc |
