mirror of https://gitlab.com/bashrc2/epicyon
Remove default arguments
parent
c08340049d
commit
aed9a6e66b
2
tests.py
2
tests.py
|
@ -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,
|
||||
|
|
2
theme.py
2
theme.py
|
@ -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):
|
||||
|
|
2
utils.py
2
utils.py
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue