]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
Use `()` and `{}` instead of `list()` and `dict()`
authorDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Fri, 24 Sep 2021 21:31:25 +0000 (23:31 +0200)
committerDimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
Sat, 26 Feb 2022 15:51:05 +0000 (16:51 +0100)
commit235efc63e2c650620260ff4c0c250a308e5c063a
treed8991672733dc7959d29624fa35919dfb19d6dfb
parent4a0601fac2c679e7af7b6948ce9d11d54de7f0a0
Use `()` and `{}` instead of `list()` and `dict()`

This fixes a DeepSource alert:

Consider using literal syntax to create the data structure

Using the literal syntax can give minor performance bumps compared to
using function calls to create dict, list and tuple.

This is because here, the name dict must be looked up in the global
scope in case it has been rebound. Same goes for the other two types
list() and tuple().

Signed-off-by: Dimitri Papadopoulos <3350651-DimitriPapadopoulos@users.noreply.gitlab.com>
trojans/tncc-emulate.py