Skip to content

Commit

Permalink
[style] Fix line break and operator; follow W504, ignore W503
Browse files Browse the repository at this point in the history
  • Loading branch information
ftnext committed Mar 31, 2024
1 parent 8ca8607 commit 9852fa4
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)


Expand Down

0 comments on commit 9852fa4

Please sign in to comment.