Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 5807:0467d80eaeec
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.
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 12 Jun 2019 19:38:33 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
