Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 44496c6

Browse files
thetwojByron
authored andcommitted
Removing f-strings to maintain 3.4 and 3.5 compatability
1 parent a086625 commit 44496c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

‎git/test/test_diff.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,23 +280,23 @@ def test_diff_submodule(self):
280280
"""Test that diff is able to correctly diff commits that cover submodule changes"""
281281
# Init a temp git repo that will be referenced as a submodule
282282
sub = Repo.init(self.submodule_dir)
283-
with open(f"{self.submodule_dir}/subfile", "w") as sub_subfile:
283+
with open(self.submodule_dir+"/subfile", "w") as sub_subfile:
284284
sub_subfile.write("")
285285
sub.index.add(["subfile"])
286286
sub.index.commit("first commit")
287287

288288
# Init a temp git repo that will incorporate the submodule
289289
repo = Repo.init(self.repo_dir)
290-
with open(f"{self.repo_dir}/test", "w") as foo_test:
290+
with open(self.repo_dir+"/test", "w") as foo_test:
291291
foo_test.write("")
292292
repo.index.add(['test'])
293-
Submodule.add(repo, "subtest", "sub", url=f"file://{self.submodule_dir}")
293+
Submodule.add(repo, "subtest", "sub", url="file://"+self.submodule_dir)
294294
repo.index.commit("first commit")
295295
repo.create_tag('1')
296296

297297
# Add a commit to the submodule
298298
submodule = repo.submodule('subtest')
299-
with open(f"{self.repo_dir}/sub/subfile", "w") as foo_sub_subfile:
299+
with open(self.repo_dir+"/sub/subfile", "w") as foo_sub_subfile:
300300
foo_sub_subfile.write("blub")
301301
submodule.module().index.add(["subfile"])
302302
submodule.module().index.commit("changed subfile")

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /