Add UnidentifiedError.__repr__.
This commit is contained in:
parent
63d11917a7
commit
96e3e52059
1 changed files with 4 additions and 0 deletions
|
@ -39,6 +39,10 @@ class UnidentifiedError(Exception):
|
||||||
self.lines = lines
|
self.lines = lines
|
||||||
self.secondary = secondary
|
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):
|
def shebang_binary(p):
|
||||||
if not (os.stat(p).st_mode & stat.S_IEXEC):
|
if not (os.stat(p).st_mode & stat.S_IEXEC):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue