diff options
| author | jvoisin | 2011-06-30 20:30:45 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-30 20:30:45 +0200 |
| commit | 7744e8a5add3e99e277f5eef9e76f0f7e46f2f04 (patch) | |
| tree | cf1c99c1890a4a303a743c0842aa2f03788817a4 | |
| parent | 347daf394f9e770ad031601b95abd32b96609adb (diff) | |
Cosmetic changes
| -rwxr-xr-x | cli.py | 8 |
1 files changed, 5 insertions, 3 deletions
| @@ -40,8 +40,11 @@ def list_meta(class_file, filename): | |||
| 40 | Print all the meta of 'filename' on stdout | 40 | Print all the meta of 'filename' on stdout |
| 41 | ''' | 41 | ''' |
| 42 | print('[+] File %s :' % filename) | 42 | print('[+] File %s :' % filename) |
| 43 | for key, value in class_file.get_meta().iteritems(): | 43 | if class_file.is_clean(): |
| 44 | print(key + ' : ' + str(value)) | 44 | print('No harmful meta found') |
| 45 | else: | ||
| 46 | for key, value in class_file.get_meta().iteritems(): | ||
| 47 | print(key + ' : ' + str(value)) | ||
| 45 | 48 | ||
| 46 | def is_clean(class_file, filename): | 49 | def is_clean(class_file, filename): |
| 47 | ''' | 50 | ''' |
| @@ -90,7 +93,6 @@ def main(): | |||
| 90 | for filename in filenames: | 93 | for filename in filenames: |
| 91 | class_file = mat.create_class_file(filename, args.backup) | 94 | class_file = mat.create_class_file(filename, args.backup) |
| 92 | func(class_file, filename) | 95 | func(class_file, filename) |
| 93 | print('\n') | ||
| 94 | 96 | ||
| 95 | if __name__ == '__main__': | 97 | if __name__ == '__main__': |
| 96 | main() | 98 | main() |
