From 07f24bd51167077da6e8eff35ac14f520a35b674 Mon Sep 17 00:00:00 2001 From: Hugo Date: Mon, 15 Jan 2018 17:51:53 +0200 Subject: Remove redundant code (made redundant by python_requires) --- blessings/__init__.py | 8 -------- 1 file changed, 8 deletions(-) (limited to 'blessings') diff --git a/blessings/__init__.py b/blessings/__init__.py index 810d367..9e10ebc 100644 --- a/blessings/__init__.py +++ b/blessings/__init__.py @@ -14,7 +14,6 @@ except ImportError: ``io.UnsupportedOperation`` in Python 2""" from os import isatty, environ -from platform import python_version_tuple import struct import sys from termios import TIOCGWINSZ @@ -23,13 +22,6 @@ from termios import TIOCGWINSZ __all__ = ['Terminal'] -if ('3', '0', '0') <= python_version_tuple() < ('3', '2', '2+'): # Good till - # 3.2.10 - # Python 3.x < 3.2.3 has a bug in which tparm() erroneously takes a string. - raise ImportError('Blessings needs Python 3.2.3 or greater for Python 3 ' - 'support due to http://bugs.python.org/issue10570.') - - class Terminal(object): """An abstraction around terminal capabilities -- cgit v1.2.1