Use the current python version for the python intersphinx reference

This commit is contained in:
John Wiggins
2015-09-13 12:53:54 +02:00
parent a445dda638
commit 4fe753fd45
+2 -1
View File
@@ -296,7 +296,8 @@ plot2rst_rcparams = {'image.cmap' : 'gray',
# -----------------------------------------------------------------------------
# intersphinx
# -----------------------------------------------------------------------------
_python_doc_base = 'http://docs.python.org/2.7'
_python_version_str = '{0.major}.{0.minor}'.format(sys.version_info)
_python_doc_base = 'http://docs.python.org/' + _python_version_str
intersphinx_mapping = {
'python': (_python_doc_base, None),
'numpy': ('http://docs.scipy.org/doc/numpy',