view roundup/anypy/my_input.py @ 5519:14a61eabcea8

Fixed unicode issues for XML template with Python 2
author Christof Meerwald <cmeerw@cmeerw.org>
date Sat, 25 Aug 2018 15:20:38 +0100
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/