diff -ru greenbone-security-assistant-7.0.2/FindPythonModule.cmake greenbone-security-assistant-7.0.2.new/FindPythonModule.cmake
--- greenbone-security-assistant-7.0.2/FindPythonModule.cmake 2016-11-10 10:58:16.000000000 +0100
+++ greenbone-security-assistant-7.0.2.new/FindPythonModule.cmake 2017-04-24 01:59:05.673721484 +0200
@@ -12,7 +12,7 @@
# A module's location is usually a directory, but for binary modules
# it's a .so file.
execute_process(COMMAND "${PYTHON_EXECUTABLE}" "-c"
- "import re, ${module}; print re.compile('/__init__.py.*').sub('',${module}.__file__)"
+ "import re, ${module}; print(re.compile('/__init__.py.*').sub('',${module}.__file__))"
RESULT_VARIABLE _${module}_status
OUTPUT_VARIABLE _${module}_location
ERROR_QUIET OUTPUT_STRIP_TRAILING_WHITESPACE)
diff -ru greenbone-security-assistant-7.0.2/tools/xml2po greenbone-security-assistant-7.0.2.new/tools/xml2po
--- greenbone-security-assistant-7.0.2/tools/xml2po 2016-11-10 10:58:16.000000000 +0100
+++ greenbone-security-assistant-7.0.2.new/tools/xml2po 2017-04-24 02:14:04.150370423 +0200
@@ -60,19 +60,19 @@
global context
context = []
elif name == 'ctxt':
- context.append(ctxdata)
global ctxdata
+ context.append(ctxdata)
ctxdata = ''
elif name == "msg":
""" Add an entry """
+ global msgid, msgstr
for ctx in context:
e = po.find(msgid, msgctxt=ctx)
if e is not None:
- print "Found duplicate string translation: %s (ctxt: %s)" % (msgid, ctx)
+ print("Found duplicate string translation: %s (ctxt: %s)" % (msgid, ctx))
else:
po.append(polib.POEntry(msgid=msgid, msgstr=msgstr,
msgctxt=ctx))
- global msgid, msgstr
msgid = ''
msgstr = ''
@@ -128,6 +128,6 @@
if __name__ == "__main__":
import sys
if len(sys.argv) == 1:
- print "Usage: %s XMLFILE [POFILE]" % sys.argv[0]
+ print("Usage: %s XMLFILE [POFILE]" % sys.argv[0])
sys.exit(1)
main(*sys.argv[1:])
diff -ru greenbone-security-assistant-7.0.2/tools/xsl2pot greenbone-security-assistant-7.0.2.new/tools/xsl2pot
--- greenbone-security-assistant-7.0.2/tools/xsl2pot 2016-11-10 10:58:16.000000000 +0100
+++ greenbone-security-assistant-7.0.2.new/tools/xsl2pot 2017-04-24 02:09:26.947489565 +0200
@@ -49,7 +49,7 @@
def process(filepath, po):
- print "Processing %s" % filepath
+ print("Processing %s" % filepath)
with open(filepath) as xsl_file:
content = xsl_file.read()
@@ -132,6 +132,6 @@
if __name__ == "__main__":
import sys
if len(sys.argv) == 1:
- print "Usage: %s XSLIDIR [POTFILE]"
+ print("Usage: %s XSLIDIR [POTFILE]")
sys.exit(1)
main(*sys.argv[1:])