mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-03 16:24:33 +08:00
Use the current python version for the python intersphinx reference
This commit is contained in:
+2
-1
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user