changeset 18175:fd3f8b87b682

win32: clean up use of two-argument raise This makes any attempt to port to Python 3 harder, and the new syntax is supported in 2.4 already.
author Augie Fackler <raf@durin42.com>
date Tue, 01 Jan 2013 12:50:23 -0600
parents 56ef99fbd6f2
children ffec6d0a5ed6
files mercurial/win32.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/win32.py	Tue Jan 01 12:50:04 2013 -0600
+++ b/mercurial/win32.py	Tue Jan 01 12:50:23 2013 -0600
@@ -370,7 +370,7 @@
             if e.errno != errno.EEXIST:
                 raise
     else:
-        raise IOError, (errno.EEXIST, "No usable temporary filename found")
+        raise IOError(errno.EEXIST, "No usable temporary filename found")
 
     try:
         os.unlink(temp)