Mercurial > public > mercurial-scm > hg-stable
diff mercurial/smartset.py @ 38576:152f4822d210
pycompat: move rapply() from util
I want to use rapply() in utils.* modules, but that would introduce a
reference cycle util -> utils.* -> util. Moving rapply() to pycompat
should be okay since it mostly serves as a compatibility helper.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sun, 10 Jun 2018 17:07:29 +0900 |
parents | f3033692ccef |
children | a3130208db1c |
line wrap: on
line diff
--- a/mercurial/smartset.py Thu Jul 05 09:53:00 2018 +0530 +++ b/mercurial/smartset.py Sun Jun 10 17:07:29 2018 +0900 @@ -29,7 +29,7 @@ if r is None: return '' elif isinstance(r, tuple): - return r[0] % util.rapply(pycompat.maybebytestr, r[1:]) + return r[0] % pycompat.rapply(pycompat.maybebytestr, r[1:]) elif isinstance(r, bytes): return r elif callable(r):