Commit c11986f
committed
Add explicit definition for __repr__ and __str__ in BaseException
Taint analysis tools such as Pysa might want to mark `BaseException.__str__`
and `BaseException.__repr__` as a source. However, since those methods
are inherited, this is not possible. Making the definition explicit fixes
the problem.1 parent 11e7d90 commit c11986f
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2058 | 2058 | | |
2059 | 2059 | | |
2060 | 2060 | | |
| 2061 | + | |
| 2062 | + | |
| 2063 | + | |
| 2064 | + | |
2061 | 2065 | | |
2062 | 2066 | | |
2063 | 2067 | | |
| |||
0 commit comments