Commit d9f4682
committed
Work around pydoctor bug parsing binary .so files
pydoctor's _parseFile only catches SyntaxError, but binary .so files
raise UnicodeDecodeError via tokenize.open(), leaving the `parsed`
variable unassigned and crashing in the finally block with
UnboundLocalError. Patch the installed pydoctor to also catch
UnicodeDecodeError so introspection can fall back to importing.1 parent 275d9e6 commit d9f4682
1 file changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
42 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
0 commit comments