mirror of
https://github.com/songquanpeng/one-api.git
synced 2025-10-11 20:23:41 +08:00
fix: remove tqdm dependency
This commit is contained in:
@@ -2,9 +2,6 @@ import argparse
|
||||
import json
|
||||
import os
|
||||
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
def list_file_paths(path):
|
||||
file_paths = []
|
||||
for root, dirs, files in os.walk(path):
|
||||
@@ -38,7 +35,7 @@ def replace_keys_in_repository(repo_path, json_file_path):
|
||||
|
||||
files = list_file_paths(repo_path)
|
||||
print('Total files: {}'.format(len(files)))
|
||||
for file_path in tqdm(files, total=len(files)):
|
||||
for file_path in files:
|
||||
replace_keys_in_file(file_path, pairs)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user