From effcbc15c998325ca2ea62ddddda15c1588d0917 Mon Sep 17 00:00:00 2001 From: cclauss Date: Tue, 21 Aug 2018 09:53:24 +0200 Subject: [PATCH] print() is a function in Python 3 Just like #15 and #19 but in a new file this time. Perhaps it is time to add some automated testing like Travis CI, Circle CI, Appveyor, etc. https://github.com/marketplace/category/continuous-integration --- src/modules/report/plain.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/modules/report/plain.py b/src/modules/report/plain.py index 85b4145..5f7b5d3 100644 --- a/src/modules/report/plain.py +++ b/src/modules/report/plain.py @@ -1,3 +1,5 @@ +from __future__ import print_function + from prettytable import ALL, PrettyTable from __main__ import config @@ -21,8 +23,8 @@ class PlainReporter(object): else: output += "\nNo vulnerabilities were found" else: - print "\nKube Hunter couldn't find any clusters" - # print "\nKube Hunter couldn't find any clusters. {}".format("Maybe try with --active?" if not config.active else "") + print("\nKube Hunter couldn't find any clusters") + # print("\nKube Hunter couldn't find any clusters. {}".format("Maybe try with --active?" if not config.active else "")) return output def nodes_table(self):