From 08147e9705d6664ff8fb8f609729066f1b04866f Mon Sep 17 00:00:00 2001 From: FUJIWARA Katsunori Date: Fri, 11 Mar 2016 21:55:44 +0900 Subject: [PATCH] convert: fix "stdlib import follows local import" problem in transport Before this patch, import-checker reports error below for importing subversion python binding libraries. stdlib import "svn.*" follows local import: mercurial --- hgext/convert/transport.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/hgext/convert/transport.py b/hgext/convert/transport.py index 54d28f967b..134ea0af28 100644 --- a/hgext/convert/transport.py +++ b/hgext/convert/transport.py @@ -18,10 +18,6 @@ # along with this program; if not, see . from __future__ import absolute_import -from mercurial import ( - util, -) - import svn.client import svn.core import svn.ra @@ -29,6 +25,10 @@ import svn.ra Pool = svn.core.Pool SubversionException = svn.core.SubversionException +from mercurial import ( + util, +) + # Some older versions of the Python bindings need to be # explicitly initialized. But what we want to do probably # won't work worth a darn against those libraries anyway!