mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-11-28 20:38:52 -06:00
chore: type and tidy the remaining site scripts
This commit is contained in:
1 parent
a6985449b3
commit
f2b7118fe3
5 files changed
+33
-16
No files matched your search
@@ -91,7 +91,7 @@ def square_image(data: bytes, size: int, kind: str = "PNG", flip: bool = False,
|
||||
|
||||
def is_svg(data: bytes) -> bool:
|
||||
head = data[:512].lstrip().lower()
|
||||
return head.startswith(b"<?xml") or head.startswith(b"<svg")
|
||||
return head.startswith((b"<?xml", b"<svg"))
|
||||
|
||||
|
||||
def safe_svg(data: bytes, url: str) -> bytes:
|
||||
|
||||
Reference in new issue
Block a user