Skip to content
Snippets Groups Projects
Commit 42aa32fb authored by Julien (jvoisin) Voisin's avatar Julien (jvoisin) Voisin
Browse files

Simplify a bit the main.py file

parent 9e485c0d
No related branches found
No related tags found
No related merge requests found
...@@ -52,7 +52,7 @@ def show_meta(filename:str): ...@@ -52,7 +52,7 @@ def show_meta(filename:str):
print(" %s: harmful content" % k) print(" %s: harmful content" % k)
def clean_meta(filename:str, is_lightweigth:bool): def clean_meta(filename:str, is_lightweigth:bool) -> bool:
if not __check_file(filename, os.R_OK|os.W_OK): if not __check_file(filename, os.R_OK|os.W_OK):
return return
...@@ -61,9 +61,8 @@ def clean_meta(filename:str, is_lightweigth:bool): ...@@ -61,9 +61,8 @@ def clean_meta(filename:str, is_lightweigth:bool):
print("[-] %s's format (%s) is not supported" % (filename, mtype)) print("[-] %s's format (%s) is not supported" % (filename, mtype))
return return
if is_lightweigth: if is_lightweigth:
p.remove_all_lightweight() return p.remove_all_lightweight()
else: return p.remove_all()
p.remove_all()
def show_parsers(): def show_parsers():
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment