Improve string formatting v9 (#34050)
* Improve string formatting v9 * Address review comments
This commit is contained in:
1 parent
5aca16ef01
commit
b2af1de273
21 files changed
+47
-72
No files matched your search
@@ -41,7 +41,7 @@ def _generate_qr_code(data: str) -> str:
|
||||
|
||||
with BytesIO() as buffer:
|
||||
qr_code.svg(file=buffer, scale=4)
|
||||
return "{}".format(
|
||||
return str(
|
||||
buffer.getvalue()
|
||||
.decode("ascii")
|
||||
.replace("\n", "")
|
||||
|
||||
Reference in new issue
Block a user