comparison 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
comparison
equal deleted inserted replaced
32290:2959c3e986e0 32291:bd872f64a8ba
121 def _createhgwebservice(ui, repo, opts): 121 def _createhgwebservice(ui, repo, opts):
122 # this way we can check if something was given in the command-line 122 # this way we can check if something was given in the command-line
123 if opts.get('port'): 123 if opts.get('port'):
124 opts['port'] = util.getport(opts.get('port')) 124 opts['port'] = util.getport(opts.get('port'))
125 125
126 alluis = set([ui]) 126 alluis = {ui}
127 if repo: 127 if repo:
128 baseui = repo.baseui 128 baseui = repo.baseui
129 alluis.update([repo.baseui, repo.ui]) 129 alluis.update([repo.baseui, repo.ui])
130 else: 130 else:
131 baseui = ui 131 baseui = ui