From e7b33730f13776ab8a6875bf2e8bb60322441556 Mon Sep 17 00:00:00 2001 From: Philippe Ombredanne Date: Tue, 23 Apr 2024 11:13:44 +0200 Subject: [PATCH] Improve documentation for Mach-O Signed-off-by: Philippe Ombredanne --- src/go_inspector/plugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/go_inspector/plugin.py b/src/go_inspector/plugin.py index e451b15..e9e73c9 100644 --- a/src/go_inspector/plugin.py +++ b/src/go_inspector/plugin.py @@ -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(