Commit 741d554
committed
email.utils: raise TypeError for non-string non-3-tuple, update docs
Revised per reviewer feedback: instead of silently handling non-3-tuples,
raise TypeError with a clear message. Updated docs to say 'not a 3-tuple'
instead of 'not a tuple' to match the code's actual check.1 parent d85561d commit 741d554
File tree
3 files changed
+10
-9
lines changed- Doc/library
- Lib
- email
- test/test_email
3 files changed
+10
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
215 | | - | |
| 215 | + | |
216 | 216 | | |
217 | 217 | | |
218 | 218 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
452 | | - | |
453 | | - | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
454 | 456 | | |
455 | 457 | | |
456 | 458 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5790 | 5790 | | |
5791 | 5791 | | |
5792 | 5792 | | |
5793 | | - | |
5794 | | - | |
| 5793 | + | |
| 5794 | + | |
5795 | 5795 | | |
5796 | | - | |
5797 | | - | |
| 5796 | + | |
5798 | 5797 | | |
5799 | | - | |
5800 | | - | |
| 5798 | + | |
| 5799 | + | |
5801 | 5800 | | |
5802 | 5801 | | |
5803 | 5802 | | |
| |||
0 commit comments