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

Appearance settings

Commit d9d9612

Browse filesBrowse files
committed
Update to using f-string in Popen command
1 parent 703baf7 commit d9d9612
Copy full SHA for d9d9612

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎scripts/fix_diffs.py

Copy file name to clipboardExpand all lines: scripts/fix_diffs.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.