From 4728a64190cb6424939e71a74989fe441a5b6447 Mon Sep 17 00:00:00 2001 From: Phil Cohen Date: Tue, 29 May 2018 12:40:46 -0700 Subject: [PATCH] gendoc: fix Fedora build from auto-formatting Summary: The ordering of the imports in this file is significant. Restore it and add `# isort:skip_file`. Reviewed By: singhsrb Differential Revision: D8190563 fbshipit-source-id: 5baddb0bd4fadd25772bb390c92f1b705847d352 --- doc/gendoc.py | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/doc/gendoc.py b/doc/gendoc.py index fe6ad27530..f1e2721310 100755 --- a/doc/gendoc.py +++ b/doc/gendoc.py @@ -6,33 +6,31 @@ where DOC is the name of a document from __future__ import absolute_import +# isort:skip_file + import os import sys import textwrap -# Load util so that the locale path is set by i18n.setdatapath() before -# calling _(). -from mercurial import ( - commands, - demandimport, - extensions, - help, - minirst, - ui as uimod, - util, -) -from mercurial.i18n import _, gettext - - # This script is executed during installs and may not have C extensions # available. Relax C module requirements. os.environ["HGMODULEPOLICY"] = "allow" # import from the live mercurial repo sys.path.insert(0, "..") +from mercurial import demandimport demandimport.enable() + +# Load util so that the locale path is set by i18n.setdatapath() before +# calling _(). +from mercurial import util + util.datapath +from mercurial import commands, extensions, help, minirst, ui as uimod +from mercurial.i18n import _, gettext + + table = commands.table globalopts = commands.globalopts helptable = help.helptable