Mercurial > public > mercurial-scm > hg
diff hgext/share.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 | f21e0d91d386 |
children | 2550604f5ec7 |
line wrap: on
line diff
--- a/hgext/share.py Fri Jul 01 19:17:45 2016 -0700 +++ b/hgext/share.py Sun Jul 03 22:28:24 2016 +0530 @@ -37,10 +37,22 @@ The default naming mode is "identity." ''' +from __future__ import absolute_import + +import errno from mercurial.i18n import _ -from mercurial import cmdutil, commands, hg, util, extensions, bookmarks, error -from mercurial.hg import repository, parseurl -import errno +from mercurial import ( + bookmarks, + cmdutil, + commands, + error, + extensions, + hg, + util, +) + +repository = hg.repository +parseurl = hg.parseurl cmdtable = {} command = cmdutil.command(cmdtable)