pull/30/merge
Mark Qvist 2026-04-13 14:18:37 +02:00
parent 41e9b17940
commit 3a658198ac
1 changed files with 5 additions and 1 deletions

View File

@ -29,7 +29,11 @@ def python314_kivy_patch():
contents = None
target_path = f"{spec.submodule_search_locations[0]}/lang/parser.py"
with open(target_path, "rb") as fh: contents = fh.read().decode("utf-8")
try:
with open(target_path, "rb") as fh: contents = fh.read().decode("utf-8")
except Exception as e:
print(f"Error while reading Kivy's lang parser file: {e}")
if not contents: fail_patch()
contents = contents.replace("\r\n", "\n")