# HG changeset patch # User FUJIWARA Katsunori # Date 1457700944 -32400 # Node ID b433233e25d96a3884af54e7eec8c7ea15d234c3 # Parent d6dbb0968c13e297606b32e06e0bdd2fb8feef20 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 diff -r d6dbb0968c13 -r b433233e25d9 hgext/convert/transport.py --- a/hgext/convert/transport.py Fri Mar 11 21:55:44 2016 +0900 +++ b/hgext/convert/transport.py Fri Mar 11 21:55:44 2016 +0900 @@ -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 @@ 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!