Mercurial > public > mercurial-scm > hg
comparison mercurial/scmutil.py @ 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 | c95210b82c0e |
children | 2c1276825e93 |
comparison
equal
deleted
inserted
replaced
18176:ffec6d0a5ed6 | 18177:203b7a759218 |
---|---|
957 | 957 |
958 def __delete__(self, obj): | 958 def __delete__(self, obj): |
959 try: | 959 try: |
960 del obj.__dict__[self.name] | 960 del obj.__dict__[self.name] |
961 except KeyError: | 961 except KeyError: |
962 raise AttributeError, self.name | 962 raise AttributeError(self.name) |