From 7c24f2fc289f94edb011798cc3566816e1847194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Thu, 30 Apr 2020 13:42:22 +0200 Subject: [PATCH] [python] Coding style --- python/port/port.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/port/port.cpp b/python/port/port.cpp index 0554528fd..29be768e4 100644 --- a/python/port/port.cpp +++ b/python/port/port.cpp @@ -211,9 +211,9 @@ KDColor MicroPython::ColorParser::ParseColor(mp_obj_t input, ColorMode ColorMode } } - if(color[0] == '#'){ + if (color[0] == '#') { // TODO handle #abc as #aabbcc (see matplotlib spec) - if(l != 7){ + if (l != 7) { mp_raise_ValueError("RGB hex values are 6 bytes long"); } uint32_t ColorInt = mp_obj_get_int(mp_parse_num_integer(color+1, strlen(color+1), 16, NULL));