Hanno Böck commited on 2010-11-28 23:55:22
Zeige 1 geänderte Dateien mit 6 Einfügungen und 6 Löschungen.
... | ... |
@@ -41,8 +41,8 @@ def versioncompare(safe_version, find_version): |
41 | 41 |
def vulnprint(appname, version, safeversion, vuln, vfilename, subdir, style = None): |
42 | 42 |
appdir = '/'.join(os.path.abspath(vfilename).split('/')[:-1-subdir]) |
43 | 43 |
if not style: |
44 |
- print "%(appname)s %(version)s (%(safeversion)s) %(vuln)s %(appdir)s" \ |
|
45 |
- % vars() |
|
44 |
+ print ("%(appname)s %(version)s (%(safeversion)s) %(vuln)s %(appdir)s" \ |
|
45 |
+ % vars()) |
|
46 | 46 |
elif style=='fancy': |
47 | 47 |
print _("Directory: %(appdir)s") % vars() |
48 | 48 |
if safeversion!="ok": |
... | ... |
@@ -175,13 +175,13 @@ for fdir in args: |
175 | 175 |
item['old_safe'].count(findversion)>0: |
176 | 176 |
if opts.ALL: |
177 | 177 |
if opts.DEBUG: |
178 |
- print "File "+mfile |
|
178 |
+ print ("File "+mfile) |
|
179 | 179 |
vulnprint(item['name'], findversion, \ |
180 | 180 |
"ok", "", mfile, item['subdir'], \ |
181 | 181 |
opts.OUTPUT) |
182 | 182 |
else: |
183 | 183 |
if opts.DEBUG: |
184 |
- print "File "+mfile |
|
184 |
+ print ("File "+mfile) |
|
185 | 185 |
safev="9999" |
186 | 186 |
for ver in item['old_safe']: |
187 | 187 |
if (versioncompare(ver.split('.'), \ |
... | ... |
@@ -198,8 +198,8 @@ for fdir in args: |
198 | 198 |
|
199 | 199 |
else: |
200 | 200 |
if opts.DEBUG: |
201 |
- print "regexp failed for " + \ |
|
202 |
- item['name'] + " on " + mfile |
|
201 |
+ print ("regexp failed for " + \ |
|
202 |
+ item['name'] + " on " + mfile) |
|
203 | 203 |
|
204 | 204 |
if opts.OUTPUT == 'xml': |
205 | 205 |
print '</freewvs>' |
206 | 206 |