Skip to content

Commit

Permalink
Improve documentation for Mach-O
Browse files Browse the repository at this point in the history
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne authored Apr 23, 2024
1 parent db4c4ee commit e7b3373
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/go_inspector/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ def get_scanner(self, **kwargs):

def is_macho(location):
"""
Return True if the file at ``location`` is macho, otherwise False.
Return True if the file at ``location`` is a Mach-O binary, otherwise False.
Mach-O is the binary format used mostly by Apple macOs and Darwin.
See https://en.wikipedia.org/wiki/Mach-O for details.
"""
t = get_type(location)
return t.filetype_file.lower().startswith("mach-o") or t.mimetype_file.lower().startswith(
Expand Down

0 comments on commit e7b3373

Please sign in to comment.