Mercurial > p > roundup > code
view roundup/anypy/my_input.py @ 5702:61874fd78ced
Fix OPTIONS responses:
Remove all HEAD methods as they return errors.
Do not advertise writable method for class/id/properties path if
property is read only (i.e. protected prop).
Collections do not have PUT, PATCH, DELETE (delete is accepted but
always returns 400 code).
| author | John Rouillard <rouilj@ieee.org> |
|---|---|
| date | Wed, 10 Apr 2019 17:56:08 -0400 |
| parents | 4cf48ff01e04 |
| children |
line wrap: on
line source
try: # Python 2. my_input = raw_input except NameError: # Python 3+. my_input = input
