diff options
| -rwxr-xr-x | main.py | 7 |
1 files changed, 3 insertions, 4 deletions
| @@ -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 | ||
| 55 | def clean_meta(filename:str, is_lightweigth:bool): | 55 | def 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 | ||
| 69 | def show_parsers(): | 68 | def show_parsers(): |
