# HG changeset patch # User Augie Fackler # Date 1357066260 21600 # Node ID 203b7a759218f181f81ae825838e7a87b227df72 # Parent ffec6d0a5ed6c5e76266e0d98f79e5b283bfd2fb 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. diff -r ffec6d0a5ed6 -r 203b7a759218 mercurial/scmutil.py --- 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)