Skip to content

Commit ee691ac

Browse files
committed
Fix ruff UP check findings
1 parent 5bfb7f5 commit ee691ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

sphinx/btest-sphinx.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def apply(self):
109109
BTestTransform._run.add(test.tag)
110110

111111
try:
112-
rawtext = open("%s#%d" % (test.rst_output, part)).read()
112+
rawtext = open(f"{test.rst_output}#{part}").read()
113113
except OSError:
114114
rawtext = ""
115115

@@ -162,7 +162,7 @@ def run(self):
162162
if part == 1:
163163
file = test.path
164164
else:
165-
file = test.path + "#%d" % part
165+
file = f"{test.path}#{part}"
166166

167167
out = open(file, "w")
168168
for line in self.content:
@@ -247,7 +247,7 @@ def run(self):
247247
while test_path in Includes:
248248
i += 1
249249

250-
test_path = "%s@%d" % (base, i)
250+
test_path = f"{base}@{i}"
251251
if ext:
252252
test_path += ext
253253

0 commit comments

Comments
 (0)