From ae045c608259a19e0846b4e943f716ae8e503b5f Mon Sep 17 00:00:00 2001 From: iou1name Date: Mon, 29 Jun 2020 15:15:48 -0400 Subject: [PATCH] syntax error --- modules/ascii.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/ascii.py b/modules/ascii.py index dc490c4..fdc3f4d 100755 --- a/modules/ascii.py +++ b/modules/ascii.py @@ -69,7 +69,7 @@ def pixels_to_chars(image, scale="ascii", color_code=None): L = R * 299/1000 + G * 587/1000 + B * 114/1000 index = int(L/range_width) char = scales[scale][index] - if color_code and char is not " ": + if color_code and char != " ": prefix = color_prefix[color_code] + char_color(pixel,color_code) char = prefix + char new_row += char