view roundup/anypy/my_input.py @ 5926:3ca3bfe6de16

Code-robustness, error-message improved .. for REST-API PATCH method with @op = action
author Ralf Schlatterbeck <rsc@runtux.com>
date Tue, 15 Oct 2019 16:23:06 +0200
parents 4cf48ff01e04
children
line wrap: on
line source

try:
    # Python 2.
    my_input = raw_input
except NameError:
    # Python 3+.
    my_input = input

Roundup Issue Tracker: http://roundup-tracker.org/