Skip to content

Commit 3343357

Browse files
authored
Update completion.py: update potodo API
1 parent 70306de commit 3343357

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

completion.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_completion(clones_dir: str, repo: str) -> tuple[float, str, float]:
3636
break
3737
path_for_merge = Path(clones_dir, 'rebased_translations', repo)
3838
completion = potodo.merge_and_scan_paths(
39-
clone_path,
39+
[clone_path],
4040
pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'),
4141
merge_path=path_for_merge,
4242
api_url='',
@@ -54,10 +54,9 @@ def get_completion(clones_dir: str, repo: str) -> tuple[float, str, float]:
5454
clone_repo.git.checkout(commit.hexsha)
5555
with TemporaryDirectory() as tmpdir:
5656
month_ago_completion = potodo.merge_and_scan_path(
57-
clone_path,
57+
[clone_path],
5858
pot_path=Path(clones_dir, 'cpython/Doc/build/gettext'),
5959
merge_path=Path(tmpdir),
60-
hide_reserved=False,
6160
api_url='',
6261
).completion
6362
clone_repo.git.checkout(branch) # restore the original state

0 commit comments

Comments
 (0)