Mercurial > hg
diff hgext/convert/transport.py @ 5140:792c1d979097
Replace _ with inst for catching exceptions to not shadow gettext.
And removed one _(...) because mercurial.i18n is not yet imported
in convert/subversion.py.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Tue, 07 Aug 2007 09:56:21 +0200 |
parents | 117dab48ca99 |
children | e75aab656f46 |
line wrap: on
line diff
--- a/hgext/convert/transport.py Tue Aug 07 09:49:07 2007 +0200 +++ b/hgext/convert/transport.py Tue Aug 07 09:56:21 2007 +0200 @@ -81,7 +81,7 @@ self.ra = svn.client.open_ra_session( self.svn_url.encode('utf8'), self.client, self.pool) - except SubversionException, (_, num): + except SubversionException, (inst, num): if num in (svn.core.SVN_ERR_RA_ILLEGAL_URL, svn.core.SVN_ERR_RA_LOCAL_REPOS_OPEN_FAILED, svn.core.SVN_ERR_BAD_URL):