From 9a21ec857b22ff0140a7f71a12f2cc943f163404 Mon Sep 17 00:00:00 2001 From: Seth Troisi Date: Wed, 15 Jan 2020 17:03:58 -0800 Subject: [MAINT] Cleanup python2 sys.version checks --- numpy/lib/utils.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'numpy/lib/utils.py') diff --git a/numpy/lib/utils.py b/numpy/lib/utils.py index d41a6e541..152322115 100644 --- a/numpy/lib/utils.py +++ b/numpy/lib/utils.py @@ -871,11 +871,7 @@ def _lookfor_generate_cache(module, import_modules, regenerate): # Local import to speed up numpy's import time. import inspect - if sys.version_info[0] >= 3: - # In Python3 stderr, stdout are text files. - from io import StringIO - else: - from StringIO import StringIO + from io import StringIO if module is None: module = "numpy" -- cgit v1.2.1