comparison hgext/githelp.py @ 51372:0d414fb8336f

cleanup: remove unnecessary list constructor calls around list comprehensions
author Manuel Jacob <me@manueljacob.de>
date Fri, 02 Feb 2024 03:39:37 +0100
parents 642e31cb55f0
children f4733654f144
comparison
equal deleted inserted replaced
51371:508fd40dc86a 51372:0d414fb8336f
109 hint=hint % pycompat.bytestr(ex.opt), 109 hint=hint % pycompat.bytestr(ex.opt),
110 ) 110 )
111 111
112 ui.warn(_(b"ignoring unknown option %s\n") % flag) 112 ui.warn(_(b"ignoring unknown option %s\n") % flag)
113 113
114 args = list([convert(x) for x in args]) 114 args = [convert(x) for x in args]
115 opts = dict( 115 opts = dict(
116 [ 116 [
117 (k, convert(v)) if isinstance(v, bytes) else (k, v) 117 (k, convert(v)) if isinstance(v, bytes) else (k, v)
118 for k, v in opts.items() 118 for k, v in opts.items()
119 ] 119 ]