@@ -715,7 +715,7 @@ def call_intersphinx(app, env, node, contnode):
715
715
"""
716
716
debug_inf (app , "???? Trying intersphinx for %s" % node ['reftarget' ])
717
717
builder = app .builder
718
- res = intersphinx .missing_reference (
718
+ res = intersphinx .missing_reference (
719
719
app , env , node , contnode )
720
720
if res :
721
721
# Replace absolute links to $SAGE_DOC by relative links: this
@@ -737,7 +737,7 @@ def find_sage_dangling_links(app, env, node, contnode):
737
737
debug_inf (app , "==================== find_sage_dangling_links " )
738
738
739
739
reftype = node ['reftype' ]
740
- reftarget = node ['reftarget' ]
740
+ reftarget = node ['reftarget' ]
741
741
try :
742
742
doc = node ['refdoc' ]
743
743
except KeyError :
@@ -753,17 +753,18 @@ def find_sage_dangling_links(app, env, node, contnode):
753
753
754
754
res = call_intersphinx (app , env , node , contnode )
755
755
if res :
756
- debug_inf (app , "++ DONE %s" % (res ['refuri' ]))
756
+ debug_inf (app , "++ DONE %s" % (res ['refuri' ]))
757
757
return res
758
758
759
- if node .get ('refdomain' ) != 'py' : # not a python file
759
+ if node .get ('refdomain' ) != 'py' : # not a python file
760
760
return None
761
761
762
762
try :
763
763
module = node ['py:module' ]
764
- cls = node ['py:class' ]
764
+ cls = node ['py:class' ]
765
765
except KeyError :
766
- debug_inf (app , "-- no module or class for :%s:%s" % (reftype , reftarget ))
766
+ debug_inf (app , "-- no module or class for :%s:%s" % (reftype ,
767
+ reftarget ))
767
768
return None
768
769
769
770
basename = reftarget .split ("." )[0 ]
@@ -789,10 +790,10 @@ def find_sage_dangling_links(app, env, node, contnode):
789
790
# adapted from sphinx/domains/python.py
790
791
builder = app .builder
791
792
searchmode = node .hasattr ('refspecific' ) and 1 or 0
792
- matches = builder .env .domains ['py' ].find_obj (
793
+ matches = builder .env .domains ['py' ].find_obj (
793
794
builder .env , module , cls , newtarget , reftype , searchmode )
794
795
if not matches :
795
- debug_inf (app , "?? no matching doc for %s" % newtarget )
796
+ debug_inf (app , "?? no matching doc for %s" % newtarget )
796
797
return call_intersphinx (app , env , node , contnode )
797
798
elif len (matches ) > 1 :
798
799
env .warn (target_module ,
0 commit comments