diff options
| author | jvoisin | 2018-04-02 23:40:00 +0200 |
|---|---|---|
| committer | jvoisin | 2018-04-02 23:40:00 +0200 |
| commit | b5a5535e3fbad7abb6551655e8fe463fd7e0a09d (patch) | |
| tree | 43a4dc93ce621577db205dd15b8381e9e0d4e17f | |
| parent | f5753dec407b3c5a299a9375cc4cf770485264a7 (diff) | |
Add some more type hinting
| -rw-r--r-- | main.py | 3 |
1 files changed, 1 insertions, 2 deletions
| @@ -6,7 +6,7 @@ import argparse | |||
| 6 | 6 | ||
| 7 | from src import parser_factory | 7 | from src import parser_factory |
| 8 | 8 | ||
| 9 | def __check_file(filename:str, mode=os.R_OK) -> bool: | 9 | def __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): | |||
| 53 | def main(): | 53 | def 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) |
