Movatterモバイル変換


[0]ホーム

URL:


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
This repository was archived by the owner on Sep 2, 2018. It is now read-only.

Commitd9d9612

Browse files
committed
Update to using f-string in Popen command
1 parent703baf7 commitd9d9612

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎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
returnmsgids,msgstrs
5555

5656
defmain(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)

[8]ページ先頭

©2009-2025 Movatter.jp