Bug 1593420 - Fix a sphinx warning: sphinx.build_main has moved r=ahal

Differential Revision: https://phabricator.services.mozilla.com/D51495

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Sylvestre Ledru 2019-11-05 07:31:08 +00:00
Родитель 76606dfbc7
Коммит 8846618424
1 изменённых файлов: 2 добавлений и 3 удалений

Просмотреть файл

@ -127,10 +127,9 @@ Bug 1498604 tracks bootstrapping jsdoc properly.
open_url_delay=0.1 if auto_open else None) open_url_delay=0.1 if auto_open else None)
def _run_sphinx(self, docdir, savedir, config=None, fmt='html', jobs=None): def _run_sphinx(self, docdir, savedir, config=None, fmt='html', jobs=None):
import sphinx import sphinx.cmd.build
config = config or self.manager.conf_py_path config = config or self.manager.conf_py_path
args = [ args = [
'sphinx',
'-b', fmt, '-b', fmt,
'-c', os.path.dirname(config), '-c', os.path.dirname(config),
docdir, docdir,
@ -138,7 +137,7 @@ Bug 1498604 tracks bootstrapping jsdoc properly.
] ]
if jobs: if jobs:
args.extend(['-j', jobs]) args.extend(['-j', jobs])
return sphinx.build_main(args) return sphinx.cmd.build.build_main(args)
@property @property
def manager(self): def manager(self):