Mercurial > public > mercurial-scm > hg
diff mercurial/server.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 | 2406dbba49bd |
children | 3f0936b2cea9 |
line wrap: on
line diff
--- a/mercurial/server.py Sat May 06 04:51:25 2017 +0530 +++ b/mercurial/server.py Fri Feb 10 16:56:29 2017 -0800 @@ -123,7 +123,7 @@ if opts.get('port'): opts['port'] = util.getport(opts.get('port')) - alluis = set([ui]) + alluis = {ui} if repo: baseui = repo.baseui alluis.update([repo.baseui, repo.ui])