Introduction
Introduction Statistics Contact Development Disclaimer Help
seeedfarming: removing trailing newline from selector - brcon2025-hackathons - …
git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fz…
Log
Files
Refs
Tags
---
commit 4abec6f4ce6d41ef57a3a1a508bd178c071fc9af
parent 97c5d32b6d86aec0cd6330440695c5412ad35171
Author: Josuah Demangeon <[email protected]>
Date: Fri, 1 Aug 2025 19:57:04 +0200
seeedfarming: removing trailing newline from selector
Diffstat:
M seeedfarming/windowshell.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/seeedfarming/windowshell.py b/seeedfarming/windowshell.py
@@ -46,7 +46,7 @@ endserial="66666666666666666"
while True:
conn, addr = s.accept()
print('Connected with %s:%s' % (addr[0], addr[1]))
- selector = conn.readline().decode()
+ selector = conn.readline().decode().rstrip()
print('read %s from client\n' % selector)
selectorpath = selector.split("/")
serialnumber = "".join(selectorpath)
You are viewing proxied material from bitreich.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.