changeset 18177:203b7a759218

scmutil: 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:51:00 -0600
parents ffec6d0a5ed6
children 6ae45c0b4625
files mercurial/scmutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/scmutil.py	Tue Jan 01 12:50:46 2013 -0600
+++ b/mercurial/scmutil.py	Tue Jan 01 12:51:00 2013 -0600
@@ -959,4 +959,4 @@
         try:
             del obj.__dict__[self.name]
         except KeyError:
-            raise AttributeError, self.name
+            raise AttributeError(self.name)