define raw_input() for Python 3

Also, dropped Python 3.3 from the testing because it goes [EOL](https://docs.python.org/devguide/index.html#branchstatus) next month and added Python 3.5 and 3.6.
This commit is contained in:
cclauss 2017-08-17 14:10:27 +02:00 committed by GitHub
parent 9ffca1a7a6
commit 5f9afedec8

View file

@ -49,6 +49,10 @@ try:
readline_available = True
except ImportError:
readline_available = False
try:
raw_input # Python 2
except NameError:
raw_input = input # Python 3
base_dir = os.path.dirname(os.path.abspath(__file__))
@ -167,8 +171,9 @@ setup(
"Programming Language :: Python",
"Programming Language :: Python :: 2.6",
"Programming Language :: Python :: 2.7",
"Programming Language :: Python :: 3.3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Office/Business :: News/Diary",
"Topic :: Text Processing"
],