diff mercurial/util.py @ 43674:5be909dbe385

util: remove datapath and swith users over to resourceutil The util module no longer needs the datapath for injecting it into the i18n module, so we can remove it from there and update other users. Differential Revision: https://phab.mercurial-scm.org/D7436
author Martin von Zweigbergk <martinvonz@google.com>
date Thu, 14 Nov 2019 13:18:22 -0800
parents f0bee3b1b847
children 7eb701e355bd
line wrap: on
line diff
--- a/mercurial/util.py	Thu Nov 14 12:41:33 2019 -0800
+++ b/mercurial/util.py	Thu Nov 14 13:18:22 2019 -0800
@@ -54,7 +54,6 @@
 from .utils import (
     compression,
     procutil,
-    resourceutil,
     stringutil,
 )
 
@@ -1823,9 +1822,6 @@
     return pycompat.ossep.join(([b'..'] * len(a)) + b) or b'.'
 
 
-datapath = resourceutil.datapath
-
-
 def checksignature(func):
     '''wrap a function with code to check for calling errors'''