Mercurial > public > mercurial-scm > hg
diff mercurial/util.py @ 27785:ba427b51f1d8
util: rename ctxmanager's __call__ method to enter
author | Bryan O'Sullivan <bryano@fb.com> |
---|---|
date | Thu, 14 Jan 2016 09:31:01 -0800 |
parents | 4d10600c3f08 |
children | 14033c5dd261 |
line wrap: on
line diff
--- a/mercurial/util.py Wed Jan 13 21:52:26 2016 -0800 +++ b/mercurial/util.py Thu Jan 14 09:31:01 2016 -0800 @@ -2655,7 +2655,7 @@ def __enter__(self): return self - def __call__(self): + def enter(self): '''Create and enter context managers in the order in which they were passed to the constructor.''' values = []