Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d9d9612

Browse files
committed
Update to using f-string in Popen command
1 parent 703baf7 commit d9d9612

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/fix_diffs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def get_msgs(lines):
5454
return msgids, msgstrs
5555

5656
def main(fp, original_po_commit='HEAD'):
57-
p = subprocess.Popen(['git', 'show', '{}:'.format(original_po_commit) + fp], stdout=subprocess.PIPE)
57+
p = subprocess.Popen(['git', 'show', f'{original_po_commit}:{fp}'], stdout=subprocess.PIPE)
5858
out, err = p.communicate()
5959
head_po = out.decode().splitlines()
6060
msgids, msgstrs = get_msgs(head_po)

0 commit comments

Comments
 (0)