Skip to content

Commit 1f6a016

Browse files
authored
Merge pull request #375 from fcollonval/fix-373
Don't use f-strings
2 parents 5e6c871 + 2b8d899 commit 1f6a016

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jupyterlab_git/git.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ def changed_files(self, base=None, remote=None, single_commit=None):
8282
}
8383
"""
8484
if single_commit:
85-
cmd = ['git', 'diff', f'{single_commit}^!', '--name-only']
85+
cmd = ['git', 'diff', '{}^!'.format(single_commit), '--name-only']
8686
elif base and remote:
8787
if base == 'WORKING':
8888
cmd = ['git', 'diff', remote, '--name-only']
@@ -91,7 +91,7 @@ def changed_files(self, base=None, remote=None, single_commit=None):
9191
else:
9292
cmd = ['git', 'diff', base, remote, '--name-only']
9393
else:
94-
raise HTTPError(400, f'Either single_commit or (base and remote) must be provided')
94+
raise HTTPError(400, 'Either single_commit or (base and remote) must be provided')
9595

9696

9797
response = {}

0 commit comments

Comments
 (0)