Commit 823eba6
committed
Fix body_line_iterator(decode=True) returning no lines in Python 3.11
Python 3.11's body_line_iterator only yields str payloads. When decode=True,
get_payload() returns bytes, which the iterator silently drops — leaving
SimpleMatch, SimpleWarning, and Tagger with nothing to scan.
Remove decode=True (defaulting to False) so get_payload() returns str as
expected. Bounce detection and topic tagging now work correctly under Python 3.1 parent 51e0499 commit 823eba6
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
224 | 224 | | |
225 | 225 | | |
226 | 226 | | |
227 | | - | |
| 227 | + | |
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
0 commit comments