aboutsummaryrefslogtreecommitdiff
path: root/src/utils/consts.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-11-14 11:44:56 +0000
committerGravatar jesopo2018-11-14 11:44:56 +0000
commit2fcde64bfd6ad5b1f54754f8fffa0b7fdb7ca136 (patch)
tree59cd5b97d5027d4c1477308794da112cd97b54b0 /src/utils/consts.py
parentAdd type annotions to irc->ansi color functions (diff)
signature
'ANSI_RESET' -> 'ANSI_BOLD_RESET' typo, 'ansi_bold' -> 'color_bold'
clarification, fix issue in color tokenizing that caused bolds to be put in the wrong place
Diffstat (limited to 'src/utils/consts.py')
-rw-r--r--src/utils/consts.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/utils/consts.py b/src/utils/consts.py
index 8b3a28db..687375f5 100644
--- a/src/utils/consts.py
+++ b/src/utils/consts.py
@@ -4,15 +4,15 @@ BITBOT_HOOKS_MAGIC = "__bitbot_hooks"
BITBOT_EXPORTS_MAGIC = "__bitbot_exports"
class IRCColor(object):
- def __init__(self, irc: int, ansi: int, ansi_bold: bool):
+ def __init__(self, irc: int, ansi: int, color_bold: bool):
self.irc = irc
self.ansi = ansi
- self.ansi_bold = ansi_bold
+ self.color_bold = color_bold
COLOR_NAMES = {}
COLOR_CODES = {}
-def _color(name: str, irc: int, ansi: int, ansi_bold: bool):
- color = IRCColor(irc, ansi, ansi_bold)
+def _color(name: str, irc: int, ansi: int, color_bold: bool):
+ color = IRCColor(irc, ansi, color_bold)
COLOR_NAMES[name] = color
COLOR_CODES[irc] = color
return color