Remove default arguments

main
Bob Mottram 2024-02-19 18:48:55 +00:00
parent c08340049d
commit aed9a6e66b
3 changed files with 3 additions and 3 deletions

View File

@ -3931,7 +3931,7 @@ def _test_addemoji(base_dir: str):
if os.path.isdir(path):
shutil.rmtree(path, ignore_errors=False, onerror=None)
os.mkdir(path)
copytree(base_dir_original + '/emoji', base_dir + '/emoji')
copytree(base_dir_original + '/emoji', base_dir + '/emoji', False, None)
os.chdir(base_dir)
private_key_pem, public_key_pem, person, wf_endpoint = \
create_person(base_dir, nickname, domain, port,

View File

@ -76,7 +76,7 @@ def import_theme(base_dir: str, filename: str) -> bool:
theme_dir = base_dir + '/theme/' + new_theme_name
if not os.path.isdir(theme_dir):
os.mkdir(theme_dir)
copytree(temp_theme_dir, theme_dir)
copytree(temp_theme_dir, theme_dir, False, None)
if os.path.isdir(temp_theme_dir):
rmtree(temp_theme_dir, ignore_errors=False, onerror=None)
if scan_themes_for_scripts(theme_dir):

View File

@ -2948,7 +2948,7 @@ def is_unlisted_post(post_json_object: {}) -> bool:
return False
def copytree(src: str, dst: str, symlinks: str = False, ignore: bool = None):
def copytree(src: str, dst: str, symlinks: str, ignore: bool):
"""Copy a directory
"""
for item in os.listdir(src):