Mercurial > public > mercurial-scm > hg
diff hgext/highlight/__init__.py @ 29485:6a98f9408a50
py3: make files use absolute_import and print_function
This patch includes addition of absolute_import and print_function to the
files where they are missing. The modern importing conventions are also followed.
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Sun, 03 Jul 2016 22:28:24 +0530 |
parents | 7a3f6490ef97 |
children | d5883fd055c6 |
line wrap: on
line diff
--- a/hgext/highlight/__init__.py Fri Jul 01 19:17:45 2016 -0700 +++ b/hgext/highlight/__init__.py Sun Jul 03 22:28:24 2016 +0530 @@ -26,9 +26,21 @@ match (even matches with a low confidence score) will be used. """ -import highlight -from mercurial.hgweb import webcommands, webutil, common -from mercurial import extensions, encoding, fileset +from __future__ import absolute_import + +from . import highlight +from mercurial.hgweb import ( + common, + webcommands, + webutil, +) + +from mercurial import ( + encoding, + extensions, + fileset, +) + # Note for extension authors: ONLY specify testedwith = 'internal' for # extensions which SHIP WITH MERCURIAL. Non-mainline extensions should # be specifying the version(s) of Mercurial they are tested with, or