Mercurial > public > mercurial-scm > hg
diff mercurial/url.py @ 37084:f0b6fbea00cf
stringutil: bulk-replace call sites to point to new module
This might conflict with other patches floating around, sorry.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 22 Mar 2018 21:56:20 +0900 |
parents | a708e1e4d7a8 |
children | 9e6d3465f17e |
line wrap: on
line diff
--- a/mercurial/url.py Thu Mar 22 21:19:31 2018 +0900 +++ b/mercurial/url.py Thu Mar 22 21:56:20 2018 +0900 @@ -24,6 +24,9 @@ urllibcompat, util, ) +from .utils import ( + stringutil, +) httplib = util.httplib stringio = util.stringio @@ -477,7 +480,7 @@ self.cookiejar = cookiejar except util.cookielib.LoadError as e: ui.warn(_('(error loading cookie file %s: %s; continuing without ' - 'cookies)\n') % (cookiefile, util.forcebytestr(e))) + 'cookies)\n') % (cookiefile, stringutil.forcebytestr(e))) def http_request(self, request): if self.cookiejar: