branch: master
commit 0f6b10f0f94553acf1cf7ad09214c2e442ec4eeb
Author: Clément Pit--Claudel <[email protected]>
Commit: Clément Pit--Claudel <[email protected]>
Add python3 shebang to fringe-utils.py
---
realgud/common/fringe-utils.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/realgud/common/fringe-utils.py b/realgud/common/fringe-utils.py
old mode 100644
new mode 100755
index c344e50..784cdb0
--- a/realgud/common/fringe-utils.py
+++ b/realgud/common/fringe-utils.py
@@ -1,3 +1,5 @@
+#!/usr/bin/env python3
+
def bit2char(byte, offset):
return "X" if byte & (1 << offset) else " "
@@ -14,7 +16,6 @@ def compile_bitmap(bmp_lines):
bmp_bytes = []
for line in bmp_lines:
s = sum(char2bit(c, offset) for (offset, c) in enumerate(line))
- print(s)
bmp_bytes.append(s.to_bytes(1, byteorder="big"))
return b"".join(bmp_bytes)