Skip to content

Commit 0c882c8

Browse files
committed
Revert gibberish changes, remove unused imports
1 parent 3f2e2a0 commit 0c882c8

File tree

1 file changed

+9
-14
lines changed

1 file changed

+9
-14
lines changed

manage_translation.py

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111
# files.
1212
# * regenerate_tx_config: recreate configuration for all resources.
1313

14-
from argparse import ArgumentParser
1514
import os
16-
from collections import Counter
15+
from argparse import ArgumentParser
1716
from dataclasses import dataclass
1817
from pathlib import Path
1918
from re import match
20-
from subprocess import call, run
19+
from subprocess import call
2120
import sys
22-
from timeit import timeit
2321
from typing import Self, Callable
2422
from urllib.parse import urlparse, parse_qs
2523

@@ -190,13 +188,10 @@ def language_switcher(entry: ResourceLanguageStatistics) -> bool:
190188

191189

192190
if __name__ == "__main__":
193-
# RUNNABLE_SCRIPTS = ('fetch', 'recreate_tx_config')
194-
#
195-
# parser = ArgumentParser()
196-
# parser.add_argument('cmd', choices=RUNNABLE_SCRIPTS)
197-
# options = parser.parse_args()
198-
#
199-
# eval(options.cmd)()
200-
print(timeit(get_number_of_translators, number=10))
201-
202-
print(timeit(get_number_of_translators_old, number=10))
191+
RUNNABLE_SCRIPTS = ('fetch', 'recreate_tx_config')
192+
193+
parser = ArgumentParser()
194+
parser.add_argument('cmd', choices=RUNNABLE_SCRIPTS)
195+
options = parser.parse_args()
196+
197+
eval(options.cmd)()

0 commit comments

Comments
 (0)