Skip to content

Commit

Permalink
Use new style string formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 1, 2016
1 parent 0dcee79 commit f9bd9b9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg_resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1180,17 +1180,17 @@ def extraction_error(self):
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
Expand Down

0 comments on commit f9bd9b9

Please sign in to comment.