mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 07:45:43 +01:00
check-files.py: readability improvement in permission check
This commit is contained in:
parent
21e85f78b8
commit
6fc5215831
@ -91,8 +91,9 @@ class PermissionIssueTracker(FileIssueTracker):
|
||||
heading = "Incorrect permissions:"
|
||||
|
||||
def check_file_for_issue(self, filepath):
|
||||
if not (os.access(filepath, os.X_OK) ==
|
||||
filepath.endswith((".sh", ".pl", ".py"))):
|
||||
is_executable = os.access(filepath, os.X_OK)
|
||||
should_be_executable = filepath.endswith((".sh", ".pl", ".py"))
|
||||
if is_executable != should_be_executable:
|
||||
self.files_with_issues[filepath] = None
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user