view roundup/anypy/my_input.py @ 6042:d09a1d6a3bd9

flake8 whitespace fixes; add version_check import version_check to make sure we are running with version > 2.7 python.
author John Rouillard <rouilj@ieee.org>
date Tue, 07 Jan 2020 21:37:48 -0500
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/