diff hgext/convert/transport.py @ 5113: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
line wrap: on
line diff
--- a/hgext/convert/transport.py
+++ b/hgext/convert/transport.py
@@ -81,7 +81,7 @@ class SvnRaTransport(object):
                 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):