File tree 2 files changed +7
-5
lines changed
2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 29
29
# Exclude:
30
30
# - Jenkins because it's behind a firewall
31
31
# - RTD because a magically-generated string triggers failures
32
- exclude_urls : ' https://pyomo-jenkins.sandia.gov/,https://pyomo.readthedocs.io/en/%s/errors.html#%s '
32
+ exclude_urls : https://pyomo-jenkins.sandia.gov/,https://pyomo.readthedocs.io/en/%s/errors.html
Original file line number Diff line number Diff line change 33
33
34
34
_indentation_re = re .compile (r'\s*' )
35
35
36
+ _RTD_URL = "https://pyomo.readthedocs.io/en/%s/errors.html"
37
+
36
38
37
39
def RTD (_id ):
38
40
_id = str (_id ).lower ()
39
- assert _id [0 ] in 'wex'
40
- return "https://pyomo.readthedocs.io/en/%s/errors.html#%s" % (
41
- 'stable' if (releaselevel == 'final' or in_testing_environment ()) else 'latest' ,
42
- _id ,
41
+ _release = (
42
+ 'stable' if releaselevel == 'final' or in_testing_environment () else 'latest'
43
43
)
44
+ assert _id [0 ] in 'wex'
45
+ return (_RTD_URL % (_release ,)) + f"#{ _id } "
44
46
45
47
46
48
_DEBUG = logging .DEBUG
You can’t perform that action at this time.
0 commit comments