summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2018-04-23 00:11:25 +0200
committerjvoisin2018-04-23 00:11:25 +0200
commit42aa32fb357f19cd68e55a1032c7f34364810d33 (patch)
treecbff00bfbcd6d5e8f3c0715c498ef903c5f06e18
parent9e485c0dad6cf67d73992efe871f68fe91b6a507 (diff)
Simplify a bit the main.py file
-rwxr-xr-xmain.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/main.py b/main.py
index 810bf8b..9e07e15 100755
--- a/main.py
+++ b/main.py
@@ -52,7 +52,7 @@ def show_meta(filename:str):
52 print(" %s: harmful content" % k) 52 print(" %s: harmful content" % k)
53 53
54 54
55def clean_meta(filename:str, is_lightweigth:bool): 55def clean_meta(filename:str, is_lightweigth:bool) -> bool:
56 if not __check_file(filename, os.R_OK|os.W_OK): 56 if not __check_file(filename, os.R_OK|os.W_OK):
57 return 57 return
58 58
@@ -61,9 +61,8 @@ def clean_meta(filename:str, is_lightweigth:bool):
61 print("[-] %s's format (%s) is not supported" % (filename, mtype)) 61 print("[-] %s's format (%s) is not supported" % (filename, mtype))
62 return 62 return
63 if is_lightweigth: 63 if is_lightweigth:
64 p.remove_all_lightweight() 64 return p.remove_all_lightweight()
65 else: 65 return p.remove_all()
66 p.remove_all()
67 66
68 67
69def show_parsers(): 68def show_parsers():