- commit
- 4743fa311f972d63fbb080b4437ac76d6c7b1921
- parent
- 41a547c612781b27f51cea4ee030e621cb9945cc
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2019-11-17 11:15
skip redundant first agument to range()
Diffstat
| M | xiwal/term.py | 4 | ++-- |
1 files changed, 2 insertions, 2 deletions
diff --git a/xiwal/term.py b/xiwal/term.py
@@ -10,7 +10,7 @@ def apply(scheme, cachefile='~/.cache/wal/sequences'): 10 10 11 11 for path in [cachefile] + glob.glob('/dev/pts/[0-9]*'): 12 12 with open(path, 'w') as tty:13 -1 for i in range(0, 16):-1 13 for i in range(16): 14 14 tty.write('\033]4;%i;%s\033\\' % (i, scheme[i])) 15 15 tty.write('\033]%i;%s\033\\' % (11, scheme[0])) 16 16 tty.write('\033]%i;%s\033\\' % (10, scheme[15])) @@ -18,7 +18,7 @@ def apply(scheme, cachefile='~/.cache/wal/sequences'): 18 18 19 19 def palette(scheme): 20 20 s = []21 -1 for i in range(0, 16):-1 21 for i in range(16): 22 22 r, g, b = lch.parse_hex(scheme[i]) 23 23 s.append('\033[48;2;%i;%i;%im \033[0m' % (r, g, b)) 24 24 print(''.join(s[:8]))