From 995ee8a84a8cc66144ea3e14cd9341350091d57d Mon Sep 17 00:00:00 2001 From: Softer Date: Fri, 1 May 2026 15:19:18 +0300 Subject: [PATCH] Apply ruff-format to share_log.py --- archinstall/lib/share_log.py | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/archinstall/lib/share_log.py b/archinstall/lib/share_log.py index 16416fee..8af659b1 100644 --- a/archinstall/lib/share_log.py +++ b/archinstall/lib/share_log.py @@ -34,23 +34,20 @@ def share_install_log() -> int: if size > _PASTE_MAX_SIZE: print( - f'Log file is too large to share: {size} bytes ' - f'(limit: {_PASTE_MAX_SIZE} bytes). ' - f'Trim it or upload manually.', + f'Log file is too large to share: {size} bytes (limit: {_PASTE_MAX_SIZE} bytes). Trim it or upload manually.', file=sys.stderr, ) return 1 print(f'About to upload {log_path} ({size} bytes) to {_PASTE_URL}', file=sys.stderr) print( - 'The log may contain hostname, mirror URLs, package list and ' - 'partition layout. The uploaded paste is public.', + 'The log may contain hostname, mirror URLs, package list and partition layout. The uploaded paste is public.', file=sys.stderr, ) try: answer = input('Continue? [y/N]: ').strip().lower() - except (EOFError, KeyboardInterrupt): + except EOFError, KeyboardInterrupt: print(file=sys.stderr) return 1