diff -r fa161ac73b24 -r e521cb13d354 hgext/rebase.py --- a/hgext/rebase.py Fri May 06 21:54:31 2016 +0530 +++ b/hgext/rebase.py Fri May 06 22:21:32 2016 +0530 @@ -14,14 +14,41 @@ https://mercurial-scm.org/wiki/RebaseExtension ''' -from mercurial import hg, util, repair, merge, cmdutil, commands, bookmarks -from mercurial import extensions, patch, scmutil, phases, obsolete, error -from mercurial import copies, destutil, repoview, registrar, revset -from mercurial.commands import templateopts -from mercurial.node import nullrev, nullid, hex, short -from mercurial.lock import release +from __future__ import absolute_import + +import errno +import os +from mercurial import ( + bookmarks, + cmdutil, + commands, + copies, + destutil, + error, + extensions, + hg, + lock, + merge, + obsolete, + patch, + phases, + registrar, + repair, + repoview, + revset, + scmutil, + util, +) +from mercurial.node import ( + hex, + nullid, + nullrev, + short, +) from mercurial.i18n import _ -import os, errno + +release = lock.release +templateopts = commands.templateopts # The following constants are used throughout the rebase module. The ordering of # their values must be maintained.