From 2e66eaf5ac8e5af2356c3a324086bdcdc64a309e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Sat, 15 May 2021 23:42:27 +0300 Subject: [PATCH] more nits --- IV/layer2img.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/IV/layer2img.py b/IV/layer2img.py index f58b28c..b9fcc3f 100644 --- a/IV/layer2img.py +++ b/IV/layer2img.py @@ -18,9 +18,7 @@ TEXTWIDTH_CM = 12.12364 def color(string): - if not string: - string = 'black' - return COLORS[string] + return COLORS[string if string else 'black'] def inch(cm):