From 5f9afedec84d3cd5ed9dd5749429404bf1497ee7 Mon Sep 17 00:00:00 2001 From: cclauss Date: Thu, 17 Aug 2017 14:10:27 +0200 Subject: [PATCH] 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. --- setup.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 851170bb..f5453b6e 100644 --- a/setup.py +++ b/setup.py @@ -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" ],