Mercurial > hg
diff mercurial/context.py @ 7008:8fee8ff13d37
use Exception(args)-style raising consistently (py3k compatibility)
author | Peter Ruibal <peter.ruibal@intel.com> |
---|---|
date | Mon, 08 Sep 2008 13:07:00 +0200 |
parents | 077f1e637cd8 |
children | ccbd39cad3c3 |
line wrap: on
line diff
--- a/mercurial/context.py Mon Sep 08 12:55:46 2008 +0200 +++ b/mercurial/context.py Mon Sep 08 13:07:00 2008 +0200 @@ -65,7 +65,7 @@ self._parents = [changectx(self._repo, x) for x in p] return self._parents else: - raise AttributeError, name + raise AttributeError(name) def __contains__(self, key): return key in self._manifest @@ -215,7 +215,7 @@ self._repopath = self._path return self._repopath else: - raise AttributeError, name + raise AttributeError(name) def __nonzero__(self): try: @@ -521,7 +521,7 @@ self._parents = [changectx(self._repo, x) for x in p] return self._parents else: - raise AttributeError, name + raise AttributeError(name) def _buildmanifest(self): """generate a manifest corresponding to the working directory""" @@ -630,7 +630,7 @@ self._filelog = self._repo.file(self._repopath) return self._filelog else: - raise AttributeError, name + raise AttributeError(name) def __nonzero__(self): return True