# HG changeset patch # User Augie Fackler # Date 2013-01-01 18:51:00 # 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 --git a/mercurial/scmutil.py b/mercurial/scmutil.py --- a/mercurial/scmutil.py +++ b/mercurial/scmutil.py @@ -959,4 +959,4 @@ class filecache(object): try: del obj.__dict__[self.name] except KeyError: - raise AttributeError, self.name + raise AttributeError(self.name)