Patchwork D7734: narrow: move `testedwith` after module imports

login
register
mail settings
Submitter phabricator
Date Dec. 27, 2019, 9:16 p.m.
Message ID <differential-rev-PHID-DREV-7cxkuw3druleiixcufi7-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/44063/
State Superseded
Headers show

Comments

phabricator - Dec. 27, 2019, 9:16 p.m.
mharbison72 created this revision.
Herald added a reviewer: durin42.
Herald added a reviewer: martinvonz.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  PyCharm flagged this as a PEP 8 violation, for module level imports not being at
  the top of the file.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7734

AFFECTED FILES
  hgext/narrow/__init__.py

CHANGE DETAILS




To: mharbison72, durin42, martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/hgext/narrow/__init__.py b/hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py
+++ b/hgext/narrow/__init__.py
@@ -8,12 +8,6 @@ 
 
 from __future__ import absolute_import
 
-# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
-# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
-# be specifying the version(s) of Mercurial they are tested with, or
-# leave the attribute unspecified.
-testedwith = b'ships-with-hg-core'
-
 from mercurial import (
     localrepo,
     registrar,
@@ -29,6 +23,12 @@ 
     narrowwirepeer,
 )
 
+# Note for extension authors: ONLY specify testedwith = 'ships-with-hg-core' for
+# extensions which SHIP WITH MERCURIAL. Non-mainline extensions should
+# be specifying the version(s) of Mercurial they are tested with, or
+# leave the attribute unspecified.
+testedwith = b'ships-with-hg-core'
+
 configtable = {}
 configitem = registrar.configitem(configtable)
 # Narrowhg *has* support for serving ellipsis nodes (which are used at