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
This commit is contained in:
Phil Cohen 2018-05-29 12:40:46 -07:00 committed by Facebook Github Bot
parent b0b561e2bd
commit 4728a64190

View File

@ -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