diff doc/gendoc.py @ 43714:f0bee3b1b847

i18n: get datapath directly from resourceutil The new resourceutil module is lower in the dependency graph, so we can depend directly on it and won't have to depend on the util module to inject the datapath. Differential Revision: https://phab.mercurial-scm.org/D7435
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Nov 2019 12:41:33 -0800
parents 9f70512ae2cf
children 1a4b9b602e54
line wrap: on
line diff
--- a/doc/gendoc.py	Thu Nov 14 12:33:10 2019 -0800
+++ b/doc/gendoc.py	Thu Nov 14 12:41:33 2019 -0800
@@ -26,11 +26,7 @@
 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,
     encoding,