Skip to content

Commit 61b91a5

Browse files
committed
Use polib directly
1 parent c44bd8b commit 61b91a5

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/create_issue.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
import os
22
import sys
3-
import subprocess
4-
import print_percentage
53

4+
import polib
65
from github import Github
76

87

@@ -11,7 +10,7 @@
1110
sys.exit(1)
1211

1312
pofilename = sys.argv[1]
14-
percentage = print_percentage.get_percent_translated(pofilename)
13+
percentage = polib.pofile(pofilename).percent_translated()
1514

1615
g = Github(os.environ.get('GITHUB_TOKEN'))
1716

0 commit comments

Comments
 (0)