It's Riseup's twentieth year, help keep us going! If you can afford it, please contribute to our winter fundraising drive.

Commit 42aa32fb authored by jvoisin's avatar jvoisin

Simplify a bit the file

parent 9e485c0d
......@@ -52,7 +52,7 @@ def show_meta(filename:str):
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):
......@@ -61,9 +61,8 @@ def clean_meta(filename:str, is_lightweigth:bool):
print("[-] %s's format (%s) is not supported" % (filename, mtype))
if is_lightweigth:
return p.remove_all_lightweight()
return p.remove_all()
def show_parsers():
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment