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
This commit is contained in:
cclauss
2018-08-21 09:53:24 +02:00
committed by GitHub
parent d126211d6b
commit effcbc15c9

View File

@@ -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):