seeedfarming: removing trailing newline from selector - brcon2025-hackathons - Bitreichcon 2025 Hackathons
 (HTM) git clone git://bitreich.org/brcon2025-hackathons git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/brcon2025-hackathons
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Tags
       ---
 (DIR) commit 4abec6f4ce6d41ef57a3a1a508bd178c071fc9af
 (DIR) parent 97c5d32b6d86aec0cd6330440695c5412ad35171
 (HTM) Author: Josuah Demangeon <me@josuah.net>
       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(-)
       ---
 (DIR) 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)