Mercurial > hg
diff hgext/keyword.py @ 28321:a7b453b47726
keyword: use absolute_import
author | Christian Ebert <blacktrash@gmx.net> |
---|---|
date | Tue, 01 Mar 2016 10:33:06 +0000 |
parents | e401dfd79ec7 |
children | 311472301ef3 |
line wrap: on
line diff
--- a/hgext/keyword.py Sun Feb 28 22:15:00 2016 -0500 +++ b/hgext/keyword.py Tue Mar 01 10:33:06 2016 +0000 @@ -82,12 +82,32 @@ {desc}" expands to the first line of the changeset description. ''' -from mercurial import commands, context, cmdutil, dispatch, filelog, extensions -from mercurial import localrepo, match, patch, templatefilters, util, error -from mercurial import scmutil, pathutil + +from __future__ import absolute_import + +import os +import re +import tempfile + from mercurial.hgweb import webcommands from mercurial.i18n import _ -import os, re, tempfile + +from mercurial import ( + cmdutil, + commands, + context, + dispatch, + error, + extensions, + filelog, + localrepo, + match, + patch, + pathutil, + scmutil, + templatefilters, + util, +) cmdtable = {} command = cmdutil.command(cmdtable)