From 175d2f858bbc216016563a4dd9a5f6904c4e473f Mon Sep 17 00:00:00 2001 From: Sourcery AI <> Date: Sun, 3 Mar 2024 06:07:50 +0000 Subject: [PATCH 1/2] 'Refactored by Sourcery' --- UXTU4Mac/UXTU4Mac.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/UXTU4Mac/UXTU4Mac.py b/UXTU4Mac/UXTU4Mac.py index b1e4c1e..bf841dc 100644 --- a/UXTU4Mac/UXTU4Mac.py +++ b/UXTU4Mac/UXTU4Mac.py @@ -629,19 +629,18 @@ def updater(): ) logging.info("Do you want to update? (y/n): ") choice = input("Option: ").lower() - if choice == "y": + if choice == "y": subprocess.run(["python3", "Assets/SU.py"]) logging.info("Updating...") logging.info("Update complete. Restarting the application, please close this window...") command_file_path = os.path.join(os.path.dirname(__file__), 'UXTU4Mac.command') subprocess.Popen(['open', command_file_path]) - raise SystemExit elif choice == "n": logging.info("Skipping update...") - raise SystemExit else: logging.info("Invalid option.") - raise SystemExit + + raise SystemExit def check_updates(): try: @@ -736,8 +735,7 @@ def main(): logging.info("A. About UXTU4Mac") logging.info("Q. Quit") choice = input("Option: ").lower() - action = options.get(choice) - if action: + if action := options.get(choice): action() else: logging.info("Invalid Option.") From 7e744482380552e503803bcdcf0c44bc0c2e552e Mon Sep 17 00:00:00 2001 From: GorouFlex <98001973+gorouflex@users.noreply.github.com> Date: Sun, 3 Mar 2024 13:11:35 +0700 Subject: [PATCH 2/2] syncc --- Changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Changelog.md b/Changelog.md index 5e166e1..2671a3e 100644 --- a/Changelog.md +++ b/Changelog.md @@ -1,3 +1,6 @@ +## [0.1.71] + +- Small changes for code structure ## [0.1.7] - Fix a serious bug about `apply_smu`