summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjvoisin2018-04-02 23:40:00 +0200
committerjvoisin2018-04-02 23:40:00 +0200
commitb5a5535e3fbad7abb6551655e8fe463fd7e0a09d (patch)
tree43a4dc93ce621577db205dd15b8381e9e0d4e17f
parentf5753dec407b3c5a299a9375cc4cf770485264a7 (diff)
Add some more type hinting
-rw-r--r--main.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/main.py b/main.py
index 2c580f8..c6b4b21 100644
--- a/main.py
+++ b/main.py
@@ -6,7 +6,7 @@ import argparse
6 6
7from src import parser_factory 7from src import parser_factory
8 8
9def __check_file(filename:str, mode=os.R_OK) -> bool: 9def __check_file(filename:str, mode:int = os.R_OK) -> bool:
10 if not os.path.isfile(filename): 10 if not os.path.isfile(filename):
11 print("[-] %s is not a regular file." % filename) 11 print("[-] %s is not a regular file." % filename)
12 return False 12 return False
@@ -53,7 +53,6 @@ def clean_meta(filename:str):
53def main(): 53def main():
54 args = create_arg_parser().parse_args() 54 args = create_arg_parser().parse_args()
55 55
56
57 if args.show: 56 if args.show:
58 for f in args.files: 57 for f in args.files:
59 show_meta(f) 58 show_meta(f)