From 77ccb2bbb461bcdc8527025f298a05842a52c2cd Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Mon, 23 Aug 2021 13:18:59 +0200 Subject: [PATCH] =?UTF-8?q?Remplacement=20de=20read=20par=20readline=20pou?= =?UTF-8?q?r=20mieux=20g=C3=A9rer=20des=20flux?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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