Commits

jagguli committed f28fe85

minor fix for installing on python3

Comments (0)

Files changed (2)

+# HG changeset patch
+# Parent 7d91a69c05d8937908672e712196b8b4784be14d
+
+diff -r 7d91a69c05d8 virtualenvwrapper/hook_loader.py
+--- a/virtualenvwrapper/hook_loader.py	Mon Sep 05 13:45:56 2011 -0400
++++ b/virtualenvwrapper/hook_loader.py	Sun Sep 11 14:15:03 2011 +1000
+@@ -125,7 +125,7 @@
+             continue
+         plugin = ep.load()
+         if options.listing:
+-            print '  {0:10} -- {1}'.format(ep.name, inspect.getdoc(plugin) or '')
++            print( '  {0:10} -- {1}'.format(ep.name, inspect.getdoc(plugin) or ''))
+             continue
+         if options.sourcing:
+             # Show the shell commands so they can
+diff -r 7d91a69c05d8 virtualenvwrapper/user_scripts.py
+--- a/virtualenvwrapper/user_scripts.py	Mon Sep 05 13:45:56 2011 -0400
++++ b/virtualenvwrapper/user_scripts.py	Sun Sep 11 14:15:03 2011 +1000
+@@ -37,7 +37,7 @@
+         log.debug('running %s', str(cmd))
+         try:
+             return_code = subprocess.call(cmd)
+-        except OSError, msg:
++        except OSError as msg:
+             log.error('could not run "%s": %s', script_path, str(msg))
+         #log.debug('Returned %s', return_code)
+     return
+new
 # Placed by Bitbucket