From 5873cca5fda41d94c191336075e1657dfeb9145d Mon Sep 17 00:00:00 2001 From: monosans Date: Sun, 18 Jul 2021 21:43:51 +0300 Subject: [PATCH] Replace for loop with list comprehension --- builder/src/configure.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/builder/src/configure.py b/builder/src/configure.py index f46d0fd1..12a1e92f 100644 --- a/builder/src/configure.py +++ b/builder/src/configure.py @@ -46,11 +46,7 @@ def get_config(bitmaps_dir: Union[str, Path], **kwargs) -> Dict[str, Any]: w_size = to_tuple(kwargs.pop("win_size")) w_canvas_size = to_tuple(kwargs.pop("win_canvas_size")) raw_x_sizes = kwargs.pop("x_sizes") - - x_sizes = [] - for size in raw_x_sizes: - x_sizes.append(to_tuple(size)) - + x_sizes = [to_tuple(size) for size in raw_x_sizes] config: Dict[str, Any] = {} for key, item in X_CURSORS_CFG.items():