From 712381c112d3122b39f9d84c888bfb37ef538d95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A5=D1=83=D1=81=D0=BD=D0=B8=D0=B4=D0=B4=D0=B8=D0=BD?= Date: Tue, 22 Aug 2023 22:22:53 +0500 Subject: [PATCH] fixed unspecified-encoding #pylint --- lib/payme/methods/generate_link.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/payme/methods/generate_link.py b/lib/payme/methods/generate_link.py index 454fa04..5590adf 100644 --- a/lib/payme/methods/generate_link.py +++ b/lib/payme/methods/generate_link.py @@ -125,7 +125,7 @@ def to_qrcode(self, path: str = 'qr-codes', filename: str = None, **kwargs): image_name = uuid.uuid4().hex if not filename else filename image_output_path = f'{path}/{image_name}.svg' - with open(image_output_path, 'w') as svg: + with open(image_output_path, 'w', encoding='utf-8') as svg: svg.write(message.split(',')[-1]) return image_output_path