Mercurial > hg
diff tests/test-histedit-fold.t @ 32291:bd872f64a8ba
cleanup: use set literals
We no longer support Python 2.6, so we can now use set literals.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Fri, 10 Feb 2017 16:56:29 -0800 |
parents | 37ab9e20991c |
children | fe0667cc521e |
line wrap: on
line diff
--- a/tests/test-histedit-fold.t Sat May 06 04:51:25 2017 +0530 +++ b/tests/test-histedit-fold.t Fri Feb 10 16:56:29 2017 -0800 @@ -154,7 +154,7 @@ > from mercurial import util > def abortfolding(ui, repo, hooktype, **kwargs): > ctx = repo[kwargs.get('node')] - > if set(ctx.files()) == set(['c', 'd', 'f']): + > if set(ctx.files()) == {'c', 'd', 'f'}: > return True # abort folding commit only > ui.warn('allow non-folding commit\\n') > EOF