Mercurial > public > mercurial-scm > hg
diff mercurial/wireproto.py @ 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 | d0d9a4fca59b |
children | 33b7283a3828 |
line wrap: on
line diff
--- a/mercurial/wireproto.py Sat May 06 04:51:25 2017 +0530 +++ b/mercurial/wireproto.py Fri Feb 10 16:56:29 2017 -0800 @@ -759,7 +759,7 @@ caps.append('stream-preferred') requiredformats = repo.requirements & repo.supportedformats # if our local revlogs are just revlogv1, add 'stream' cap - if not requiredformats - set(('revlogv1',)): + if not requiredformats - {'revlogv1'}: caps.append('stream') # otherwise, add 'streamreqs' detailing our local revlog format else: