mirror of https://gitlab.com/bashrc2/epicyon
Less indentation
parent
f0db978b8f
commit
1158e6b65c
5
utils.py
5
utils.py
|
@ -1810,7 +1810,8 @@ def remove_post_from_index(post_url: str, debug: bool,
|
||||||
print('EX: remove_post_from_index unable to read ' +
|
print('EX: remove_post_from_index unable to read ' +
|
||||||
index_file + ' ' + str(exc))
|
index_file + ' ' + str(exc))
|
||||||
|
|
||||||
if lines:
|
if not lines:
|
||||||
|
return
|
||||||
try:
|
try:
|
||||||
with open(index_file, 'w+',
|
with open(index_file, 'w+',
|
||||||
encoding='utf-8') as fp_mod2:
|
encoding='utf-8') as fp_mod2:
|
||||||
|
@ -2433,7 +2434,7 @@ def no_of_active_accounts_monthly(base_dir: str, months: int) -> bool:
|
||||||
return account_ctr
|
return account_ctr
|
||||||
|
|
||||||
|
|
||||||
def copytree(src: str, dst: str, symlinks: str, ignore: bool):
|
def copytree(src: str, dst: str, symlinks: str, ignore: bool) -> None:
|
||||||
"""Copy a directory
|
"""Copy a directory
|
||||||
"""
|
"""
|
||||||
for item in os.listdir(src):
|
for item in os.listdir(src):
|
||||||
|
|
Loading…
Reference in New Issue