From dcf9df576d0e30e016bb6ecb9fb67decc04d2761 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Mon, 30 Nov 2009 23:31:37 +0100 Subject: Fixed EOL Errors, beautified js --- pyLoadCli.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'pyLoadCli.py') diff --git a/pyLoadCli.py b/pyLoadCli.py index e94a7e57d..cf75019be 100755 --- a/pyLoadCli.py +++ b/pyLoadCli.py @@ -54,12 +54,13 @@ class pyLoadCli: self.connect(server_url) - self.lock.acquire() - curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK) - curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK) - curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK) - curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK) - curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE) + self.lock.acquire() + + curses.init_pair(1, curses.COLOR_BLUE, curses.COLOR_BLACK) + curses.init_pair(2, curses.COLOR_YELLOW, curses.COLOR_BLACK) + curses.init_pair(3, curses.COLOR_GREEN, curses.COLOR_BLACK) + curses.init_pair(4, curses.COLOR_CYAN, curses.COLOR_BLACK) + curses.init_pair(5, curses.COLOR_BLACK, curses.COLOR_WHITE ) self.screen = self.stdscr.subwin(23, 79, 0, 0) self.screen.box() @@ -86,7 +87,7 @@ class pyLoadCli: raise Exception("server is version %s client accepts version %s" % (server_version, SERVER_VERSION)) def refresh(self): - self.lock.acquire() + self.lock.acquire() self.screen.refresh() self.lock.release() @@ -342,7 +343,7 @@ class LoopThread(Thread): server_url = "" def main(stdscr): - global server_url + global server_url cli = pyLoadCli(stdscr, server_url) refresh_loop = LoopThread(cli.update_status, sleep_time=1) refresh_loop.start() -- cgit v1.2.3