Skip to content

Commit 4fabf93

Browse files
author
Frederic Collonval
committed
Don't use f-strings
1 parent f1e7640 commit 4fabf93

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
@@ -39,7 +39,7 @@ def changed_files(self, base=None, remote=None, single_commit=None):
3939
}
4040
"""
4141
if single_commit:
42-
cmd = ['git', 'diff', f'{single_commit}^!', '--name-only']
42+
cmd = ['git', 'diff', '{}^!'.format(single_commit), '--name-only']
4343
elif base and remote:
4444
if base == 'WORKING':
4545
cmd = ['git', 'diff', remote, '--name-only']
@@ -48,7 +48,7 @@ def changed_files(self, base=None, remote=None, single_commit=None):
4848
else:
4949
cmd = ['git', 'diff', base, remote, '--name-only']
5050
else:
51-
raise HTTPError(400, f'Either single_commit or (base and remote) must be provided')
51+
raise HTTPError(400, 'Either single_commit or (base and remote) must be provided')
5252

5353

5454
response = {}

0 commit comments

Comments
 (0)