Fix style issues / import bug

This commit is contained in:
Derek Schmidt 2021-04-09 17:32:30 -07:00
parent bf73e8fb5c
commit db95ccf049
3 changed files with 3 additions and 2 deletions

View file

@ -8,6 +8,7 @@ from miniirc import ircv3_message_parser
from . import AUTHOR_TYPES
from .ChatProcess import ChatProcess
class CONTROL_MESSAGES(Enum):
RESTART = auto()

View file

@ -7,8 +7,6 @@ from pygame.time import Clock
from . import BG_COLOR
from .MessageView import MessageView
from chats import FakeChat, YoutubeLive
class App(Process):
def __init__(self, chat_processes, plugins):

View file

@ -1,4 +1,5 @@
from hashlib import md5
import math
import re
import pygame
@ -11,6 +12,7 @@ from .TextFragment import TextFragment
hex_color_regex = re.compile('^#[a-f0-9]{6}$')
def closest_xterm(target_color):
r, g, b = (int(target_color[i:i+2], 16) for i in range(1, len(target_color), 2))