Commit 0527a27
committed
Try to deal with this warning/error: DeprecationWarning: generator
'iter_roles' raised StopIteration
PEP479 specifies how to rework it by using return rather than raise
StopIteration.
I am not sure if this is right, but
test/test_cgi.py::FormTestCase::testRoles is still passing.1 parent 65d6b91 commit 0527a27
1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
39 | 38 | | |
40 | 39 | | |
41 | 40 | | |
| |||
837 | 836 | | |
838 | 837 | | |
839 | 838 | | |
840 | | - | |
| 839 | + | |
841 | 840 | | |
842 | 841 | | |
843 | 842 | | |
| |||
0 commit comments