summaryrefslogtreecommitdiff
path: root/cli.py
diff options
context:
space:
mode:
authorjvoisin2011-06-21 17:26:15 +0200
committerjvoisin2011-06-21 17:26:15 +0200
commit5aa90822631b80502afaca18c222432d4f8c3cc1 (patch)
treea0bbfbb8b3219dd017abfe37cbeb81d0acded7f0 /cli.py
parentef3a62c92b9e071909c53d3757431e0d1f87eec9 (diff)
list_meta() now display 'key : value'
Diffstat (limited to 'cli.py')
-rwxr-xr-x[-rw-r--r--]cli.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/cli.py b/cli.py
index 2c1a0d8..f2bec52 100644..100755
--- a/cli.py
+++ b/cli.py
@@ -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
42def is_clean(class_file, filename): 43def is_clean(class_file, filename):
43 ''' 44 '''