From 82c592be7a850337e8e03f59ecbd5997a3af1c19 Mon Sep 17 00:00:00 2001 From: "U-LAPTOP-4EP3DB2K\\alexa" Date: Sun, 5 Jan 2025 18:35:08 +0800 Subject: [PATCH] Run black and flake8 --- hagadias/constants.py | 2 +- hagadias/gameroot.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hagadias/constants.py b/hagadias/constants.py index 4ad0267..f9cf2e7 100644 --- a/hagadias/constants.py +++ b/hagadias/constants.py @@ -219,7 +219,7 @@ "o": (241, 95, 34), "O": (233, 159, 16), "transparent": (15, 59, 58, 0), - "#": (15, 59, 58, 0), # HACK HACK HACK + "#": (15, 59, 58, 0), # HACK HACK HACK } QUD_VIRIDIAN = (15, 59, 58, 255) # 0f3b3a LIQUID_COLORS = { diff --git a/hagadias/gameroot.py b/hagadias/gameroot.py index b991b10..4c5a400 100644 --- a/hagadias/gameroot.py +++ b/hagadias/gameroot.py @@ -93,7 +93,7 @@ def get_object_tree(self, cls=QudObjectProps): log.debug("Repairing invalid XML line breaks... ") contents = repair_invalid_linebreaks(contents) log.debug("done in %.2f seconds", time.time() - start) - raw = et.fromstring(bytes(contents, encoding='utf-8')) + raw = et.fromstring(bytes(contents, encoding="utf-8")) # Objects must receive the qindex and add themselves, rather than doing it here, because # they need access to their parent by name lookup during creation for inheritance # calculations.