changeset 28412:1e03b74195d4

convert: transport use absolute_import
author timeless <timeless@mozdev.org>
date Wed, 02 Mar 2016 16:37:50 +0000
parents 098bb5660580
children 6bda82107e05
files hgext/convert/transport.py tests/test-check-py3-compat.t
diffstat 2 files changed, 9 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/transport.py	Wed Mar 02 16:32:52 2016 +0000
+++ b/hgext/convert/transport.py	Wed Mar 02 16:37:50 2016 +0000
@@ -16,12 +16,18 @@
 
 # You should have received a copy of the GNU General Public License
 # along with this program; if not, see <http://www.gnu.org/licenses/>.
+from __future__ import absolute_import
 
-from mercurial import util
-from svn.core import SubversionException, Pool
-import svn.ra
+from mercurial import (
+    util,
+)
+
 import svn.client
 import svn.core
+import svn.ra
+
+Pool = svn.core.Pool
+SubversionException = svn.core.SubversionException
 
 # Some older versions of the Python bindings need to be
 # explicitly initialized. But what we want to do probably
--- a/tests/test-check-py3-compat.t	Wed Mar 02 16:32:52 2016 +0000
+++ b/tests/test-check-py3-compat.t	Wed Mar 02 16:37:50 2016 +0000
@@ -23,7 +23,6 @@
   hgext/color.py not using absolute_import
   hgext/convert/__init__.py not using absolute_import
   hgext/convert/cvs.py not using absolute_import
-  hgext/convert/transport.py not using absolute_import
   hgext/eol.py not using absolute_import
   hgext/extdiff.py not using absolute_import
   hgext/factotum.py not using absolute_import