Mercurial > public > mercurial-scm > hg
diff hgext/fetch.py @ 29121:dc406c7e41d6
py3: make hgext/fetch.py use absolute_import
author | Pulkit Goyal <7895pulkit@gmail.com> |
---|---|
date | Fri, 06 May 2016 21:44:41 +0530 |
parents | 9dcc9ed26d33 |
children | d5883fd055c6 |
line wrap: on
line diff
--- a/hgext/fetch.py Fri May 06 21:41:25 2016 +0530 +++ b/hgext/fetch.py Fri May 06 21:44:41 2016 +0530 @@ -7,12 +7,23 @@ '''pull, update and merge in one command (DEPRECATED)''' +from __future__ import absolute_import + from mercurial.i18n import _ -from mercurial.node import short -from mercurial import commands, cmdutil, hg, util, error -from mercurial.lock import release -from mercurial import exchange +from mercurial.node import ( + short, +) +from mercurial import ( + cmdutil, + commands, + error, + exchange, + hg, + lock, + util, +) +release = lock.release cmdtable = {} command = cmdutil.command(cmdtable) # Note for extension authors: ONLY specify testedwith = 'internal' for