Use readline instead of read
Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
parent
5e4ac1dc02
commit
bc5f1d21c7
|
@ -23,7 +23,7 @@ def read_qrcode(file) -> str:
|
|||
Peut être combiné avec zbar pour directement lire le contenu du QRCode.
|
||||
"""
|
||||
with file:
|
||||
content = file.read()
|
||||
content = file.readline()
|
||||
content = content.replace('\n', '')
|
||||
return content
|
||||
|
||||
|
|
Loading…
Reference in New Issue