diff options
| author | 2018-11-02 13:14:42 +0000 | |
|---|---|---|
| committer | 2018-11-02 13:14:42 +0000 | |
| commit | 9fe7815c17623ddedd8bfc8d5b281b778a73cc43 (patch) | |
| tree | 556660e3d6c58cd1b5638cf3eb29329424e4b61d /src/utils | |
| parent | Show wallet balances in a human format (with ","s) (diff) | |
| signature | ||
utils.irc.color should take `int` for foreground/background, not str
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/irc.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/irc.py b/src/utils/irc.py index b7819e7c..49e118f4 100644 --- a/src/utils/irc.py +++ b/src/utils/irc.py @@ -98,7 +98,7 @@ FONT_BOLD, FONT_ITALIC, FONT_UNDERLINE, FONT_INVERT = ("\x02", "\x1D", FONT_COLOR, FONT_RESET = "\x03", "\x0F" REGEX_COLOR = re.compile("%s\d\d(?:,\d\d)?" % FONT_COLOR) -def color(s: str, foreground: str, background: str=None) -> str: +def color(s: str, foreground: int, background: int=None) -> str: foreground = str(foreground).zfill(2) if background: background = str(background).zfill(2) |
