Skip to content

Commit e34bd36

Browse files
committed
Use old style string formatting instead of the format method to retain python 2.4 and 2.5 support
1 parent efb17bb commit e34bd36

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

docs/en/history.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ dev
1010
- Add :ref:`command-mktmpenv` command for creating temporary
1111
environments that are automatically removed when they are
1212
deactivated.
13+
- Fixed a problem with hook_loader that prevented it from working
14+
under Python 2.5 and 2.4.
1315

1416
2.9
1517

virtualenvwrapper/hook_loader.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def run_hooks(hook, options, args, output=None):
125125
continue
126126
plugin = ep.load()
127127
if options.listing:
128-
print ' {0:10} -- {1}'.format(ep.name, inspect.getdoc(plugin) or '')
128+
print ' %-10s -- %s' % (ep.name, inspect.getdoc(plugin) or '')
129129
continue
130130
if options.sourcing:
131131
# Show the shell commands so they can

0 commit comments

Comments
 (0)