Commit 92c930a
committed
Restore _write and _flush in WriteLogger.__setstate__
After unpickling a WriteLogger, calling any log method (msg, info,
debug, etc.) raises AttributeError because __setstate__ only restores
_file and _lock but not _write and _flush.
BytesLogger.__setstate__ already handles this correctly, and so does
WriteLogger.__deepcopy__ — this was just an oversight in __setstate__.1 parent a223a65 commit 92c930a
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
| 189 | + | |
| 190 | + | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
| |||
0 commit comments