aboutsummaryrefslogtreecommitdiffstats
path: root/dev-python/virtualenvwrapper/files/python-3.patch
blob: 1fe8005035f1cda13d0a187f660253ee257d8907 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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