From cdce5dd41ae87e5b87754bf8734eb5d3a79058d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 19 May 2021 22:57:51 +0300 Subject: [PATCH] more nits --- layer2img.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/layer2img.py b/layer2img.py index f58b28c..b9fcc3f 100644 --- a/layer2img.py +++ b/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):