From 9338484910bcee2a9fbe9f159b01f58a97b61752 Mon Sep 17 00:00:00 2001 From: Vu Nhat Minh Date: Wed, 2 Jul 2014 17:51:30 +0900 Subject: [PATCH] RGB not bold --- rainbowstream/colors.py | 4 +--- rainbowstream/draw.py | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/rainbowstream/colors.py b/rainbowstream/colors.py index f3c7f85..e221e7f 100644 --- a/rainbowstream/colors.py +++ b/rainbowstream/colors.py @@ -20,10 +20,8 @@ def RGB(code): """ 256 colors supported """ - def inner(text, bold=True): + def inner(text): c = code - if bold: - c = "1;%s" % c return "\033[38;5;%sm%s\033[0m" % (c, text) return inner diff --git a/rainbowstream/draw.py b/rainbowstream/draw.py index d3cbc66..b0d5478 100644 --- a/rainbowstream/draw.py +++ b/rainbowstream/draw.py @@ -22,7 +22,7 @@ def color_func(func_name): """ pure = func_name.encode('utf8') if pure.startswith('RGB_') and pure[4:].isdigit(): - return RGB(int(pure[4:]) + return RGB(int(pure[4:])) return globals()[pure] -- 2.25.1