From 1a6d0237b76ad70a4dcfb3976f20edd4a08bfd8c 2017-06-21 10:10:19
From: jfbu <jfbu@free.fr>
Date: 2017-06-21 10:10:19
Subject: [PATCH] No need to check Sphinx version for Directive import from docutils

---

diff --git a/IPython/sphinxext/ipython_directive.py b/IPython/sphinxext/ipython_directive.py
index 6e7f40e..dfa4a2a 100644
--- a/IPython/sphinxext/ipython_directive.py
+++ b/IPython/sphinxext/ipython_directive.py
@@ -138,13 +138,7 @@ from io import StringIO
 
 # Third-party
 from docutils.parsers.rst import directives
-import sphinx
-# sphinx.version_info available since 1.2, and we require 1.3
-# sphinx.util.compat deprecated at 1.6 and removed at 1.7
-if sphinx.version_info < (1, 5, 7):
-    from sphinx.util.compat import Directive
-else:
-    from docutils.parsers.rst import Directive
+from docutils.parsers.rst import Directive
 
 # Our own
 from traitlets.config import Config