From 29ef2a0f33c49b2d5db93cebf9d7188c08697c15 2018-04-13 09:50:29 From: Subhendu Ranjan Mishra Date: 2018-04-13 09:50:29 Subject: [PATCH] Issue #11068 : Cleanup extra logic that handle python <=3.3 in IPython/utils/openpy.py --- diff --git a/IPython/utils/openpy.py b/IPython/utils/openpy.py index a45552b..6b29349 100644 --- a/IPython/utils/openpy.py +++ b/IPython/utils/openpy.py @@ -114,8 +114,4 @@ def _list_readline(x): return readline # Code for going between .py files and cached .pyc files ---------------------- -try: - from importlib.util import source_from_cache, cache_from_source -except ImportError : - ## deprecated since 3.4 - from imp import source_from_cache, cache_from_source +from importlib.util import source_from_cache, cache_from_source