We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5bfb7f5 commit ee691acCopy full SHA for ee691ac
sphinx/btest-sphinx.py
@@ -109,7 +109,7 @@ def apply(self):
109
BTestTransform._run.add(test.tag)
110
111
try:
112
- rawtext = open("%s#%d" % (test.rst_output, part)).read()
+ rawtext = open(f"{test.rst_output}#{part}").read()
113
except OSError:
114
rawtext = ""
115
@@ -162,7 +162,7 @@ def run(self):
162
if part == 1:
163
file = test.path
164
else:
165
- file = test.path + "#%d" % part
+ file = f"{test.path}#{part}"
166
167
out = open(file, "w")
168
for line in self.content:
@@ -247,7 +247,7 @@ def run(self):
247
while test_path in Includes:
248
i += 1
249
250
- test_path = "%s@%d" % (base, i)
+ test_path = f"{base}@{i}"
251
if ext:
252
test_path += ext
253
0 commit comments