Add UnidentifiedError.__repr__.

This commit is contained in:
Jelmer Vernooij 2021-03-23 13:40:12 +00:00
parent 63d11917a7
commit 96e3e52059

View file

@ -39,6 +39,10 @@ class UnidentifiedError(Exception):
self.lines = lines
self.secondary = secondary
def __repr__(self):
return "<%s(%r, %r, ..., secondary=%r)>" % (
type(self).__name__, self.retcode, self.argv, self.secondary)
def shebang_binary(p):
if not (os.stat(p).st_mode & stat.S_IEXEC):