view roundup/anypy/my_input.py @ 5609:dccf9b7e5ee4

Fix CSV export with WSGI and Python 3 (issue2551019).
author Tom Ekberg <tekberg@uw.edu>
date Sun, 10 Feb 2019 14:10:55 +0000
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/