From 9852fa414ba5f926f8a420f3c9571555797192bc Mon Sep 17 00:00:00 2001 From: nikkie Date: Sun, 31 Mar 2024 23:50:03 +0000 Subject: [PATCH] [style] Fix line break and operator; follow W504, ignore W503 --- setup.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index 8d717790..158d1373 100644 --- a/setup.py +++ b/setup.py @@ -21,12 +21,15 @@ def run(self): if os.path.basename(output_path) in FILES_TO_MARK_EXECUTABLE: log.info("setting executable permissions on {}".format(output_path)) stat_info = os.stat(output_path) + OWNER_CAN_READ_EXECUTE = stat.S_IRUSR | stat.S_IXUSR + GROUP_CAN_READ_EXECUTE = stat.S_IRGRP | stat.S_IXGRP + OTHERS_CAN_READ_EXECUTE = stat.S_IROTH | stat.S_IXOTH os.chmod( output_path, - stat_info.st_mode | - stat.S_IRUSR | stat.S_IXUSR | # owner can read/execute - stat.S_IRGRP | stat.S_IXGRP | # group can read/execute - stat.S_IROTH | stat.S_IXOTH # everyone else can read/execute + stat_info.st_mode + | OWNER_CAN_READ_EXECUTE + | GROUP_CAN_READ_EXECUTE + | OTHERS_CAN_READ_EXECUTE, )