diff options
| author | jvoisin | 2011-06-20 01:33:18 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-20 01:33:18 +0200 |
| commit | 9c6953067fd1132f778faa7e926e9049edf9f4c3 (patch) | |
| tree | 8671d832aaf30442e9e4017ebd0cefe6febbd634 /cli.py | |
| parent | 52f2fedd5d73807d42ba5c397c3e4c5348b47a47 (diff) | |
Rewriting of the get_meta() function.
Diffstat (limited to 'cli.py')
| -rw-r--r--[-rwxr-xr-x] | cli.py | 5 |
1 files changed, 2 insertions, 3 deletions
| @@ -4,7 +4,7 @@ | |||
| 4 | ''' | 4 | ''' |
| 5 | 5 | ||
| 6 | import sys | 6 | import sys |
| 7 | import lib.mat | 7 | from lib import mat |
| 8 | import optparse | 8 | import optparse |
| 9 | 9 | ||
| 10 | __version__ = '0.1' | 10 | __version__ = '0.1' |
| @@ -37,8 +37,7 @@ def list_meta(class_file, filename): | |||
| 37 | Print all the meta of 'filename' on stdout | 37 | Print all the meta of 'filename' on stdout |
| 38 | ''' | 38 | ''' |
| 39 | print('[+] File %s :' % filename) | 39 | print('[+] File %s :' % filename) |
| 40 | for key, item in class_file.get_meta().iteritems(): | 40 | print "\n".join([field for field in class_file.get_meta()]) |
| 41 | print('\t%s : %s' % (key, item) ) | ||
| 42 | 41 | ||
| 43 | def is_clean(class_file, filename): | 42 | def is_clean(class_file, filename): |
| 44 | ''' | 43 | ''' |
