narrow: move `testedwith` after module imports
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 27 Dec 2019 02:05:01 -0500
changeset 43966 f91834ecfdfd
parent 43965 8a81fa44f7bb
child 43967 6c201f0d17b1
narrow: move `testedwith` after module imports PyCharm flagged this as a PEP 8 violation, for module level imports not being at the top of the file. Differential Revision: https://phab.mercurial-scm.org/D7734
hgext/narrow/__init__.py
--- a/hgext/narrow/__init__.py	Thu Dec 26 18:26:06 2019 -0500
+++ b/hgext/narrow/__init__.py	Fri Dec 27 02:05:01 2019 -0500
@@ -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