aboutsummaryrefslogtreecommitdiffstats
path: root/dev-python/virtualenvwrapper/files/python-3.patch
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-03-02 02:40:48 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-03-02 02:40:48 +0100
commitb7694a51502909897cb2f545ab56c86a0ada07e3 (patch)
tree8d6f54b60269bc3b7f13bc860c883fc6ca0ac555 /dev-python/virtualenvwrapper/files/python-3.patch
parentfef0f2071cba5f8e65054c549b6221a3ad62a2ea (diff)
parent0b5ce281fedef012c1d3a937d3251ab05741d9f2 (diff)
downloadoverlay-b7694a51502909897cb2f545ab56c86a0ada07e3.tar.gz
overlay-b7694a51502909897cb2f545ab56c86a0ada07e3.tar.xz
overlay-b7694a51502909897cb2f545ab56c86a0ada07e3.zip
Merge branch 'master' of ssh://git.animux.de/overlay
Diffstat (limited to 'dev-python/virtualenvwrapper/files/python-3.patch')
-rw-r--r--dev-python/virtualenvwrapper/files/python-3.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/dev-python/virtualenvwrapper/files/python-3.patch b/dev-python/virtualenvwrapper/files/python-3.patch
new file mode 100644
index 0000000..1fe8005
--- /dev/null
+++ b/dev-python/virtualenvwrapper/files/python-3.patch
@@ -0,0 +1,24 @@
+--- a/virtualenvwrapper/hook_loader.py Sun Feb 27 09:24:38 2011 -0500
++++ b/virtualenvwrapper/hook_loader.py Mon Feb 28 01:05:11 2011 +0000
+@@ -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
+--- a/virtualenvwrapper/user_scripts.py Sun Feb 27 09:24:38 2011 -0500
++++ b/virtualenvwrapper/user_scripts.py Mon Feb 28 01:05:11 2011 +0000
+@@ -28,7 +28,9 @@
+ log.debug('running %s', str(cmd))
+ try:
+ return_code = subprocess.call(cmd)
+- except OSError, msg:
++ except OSError:
++ import sys
++ msg = sys.exc_info()[1]
+ log.error('ERROR: Could not run %s. %s', script_path, str(msg))
+ #log.debug('Returned %s', return_code)
+ return