From bc5f1d21c7981f32d8b3ba64973a19b7cb9d9b76 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 23 Aug 2021 13:18:59 +0200 Subject: [PATCH] Use readline instead of read Signed-off-by: Yohann D'ANELLO --- pscheck/pscheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pscheck/pscheck.py b/pscheck/pscheck.py index e84416d..751883b 100644 --- a/pscheck/pscheck.py +++ b/pscheck/pscheck.py @@ -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