mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 08:45:15 +02:00
Some fixes for flake8
This commit is contained in:
parent
b507029741
commit
6f57a3dd63
@ -6,8 +6,6 @@ import sys
|
|||||||
from time import sleep
|
from time import sleep
|
||||||
from powerline.lib.monotonic import monotonic
|
from powerline.lib.monotonic import monotonic
|
||||||
from subprocess import Popen, PIPE
|
from subprocess import Popen, PIPE
|
||||||
from threading import Thread
|
|
||||||
from select import select
|
|
||||||
|
|
||||||
powerline = Powerline('wm', renderer_module='pango_markup')
|
powerline = Powerline('wm', renderer_module='pango_markup')
|
||||||
powerline.update_renderer()
|
powerline.update_renderer()
|
||||||
@ -17,6 +15,7 @@ try:
|
|||||||
except IndexError:
|
except IndexError:
|
||||||
interval = 2
|
interval = 2
|
||||||
|
|
||||||
|
|
||||||
def read_to_log(pl, client):
|
def read_to_log(pl, client):
|
||||||
for line in client.stdout:
|
for line in client.stdout:
|
||||||
if line:
|
if line:
|
||||||
@ -27,6 +26,7 @@ def read_to_log(pl, client):
|
|||||||
if client.wait():
|
if client.wait():
|
||||||
pl.error('Client exited with {0}', client.returncode, prefix='awesome')
|
pl.error('Client exited with {0}', client.returncode, prefix='awesome')
|
||||||
|
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
start_time = monotonic()
|
start_time = monotonic()
|
||||||
s = powerline.render(side='right')
|
s = powerline.render(side='right')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user