diff options
| author | jvoisin | 2011-06-21 17:26:15 +0200 |
|---|---|---|
| committer | jvoisin | 2011-06-21 17:26:15 +0200 |
| commit | 5aa90822631b80502afaca18c222432d4f8c3cc1 (patch) | |
| tree | a0bbfbb8b3219dd017abfe37cbeb81d0acded7f0 /cli.py | |
| parent | ef3a62c92b9e071909c53d3757431e0d1f87eec9 (diff) | |
list_meta() now display 'key : value'
Diffstat (limited to 'cli.py')
| -rwxr-xr-x[-rw-r--r--] | cli.py | 3 |
1 files changed, 2 insertions, 1 deletions
| @@ -37,7 +37,8 @@ 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 | print "\n".join([field for field in class_file.get_meta()]) | 40 | for key, value in class_file.get_meta().iteritems(): |
| 41 | print key + ' : ' + value | ||
| 41 | 42 | ||
| 42 | def is_clean(class_file, filename): | 43 | def is_clean(class_file, filename): |
| 43 | ''' | 44 | ''' |
