Commit fbd225c3 authored by Bryton Lacquement's avatar Bryton Lacquement 🚪

recipe/check_parameter: add support for Python 3 (NEEDS TO BE RELEASED BEFORE)

parent d7d64484
#!%(python_path)s
# BEWARE: This file is operated by slapgrid
# BEWARE: It will be overwritten automatically
from __future__ import print_function
import socket
import sys
......@@ -9,9 +10,9 @@ expected = "%(expected-value)s"
not_expected = "%(expected-not-value)s"
if expected != "" and value != expected:
print "FAIL: %%s != %%s" %% (value, expected)
print("FAIL: %%s != %%s" %% (value, expected))
sys.exit(127)
if not_expected != "" and value == not_expected:
print "FAIL: %%s == %%s" %% (value, not_expected)
print("FAIL: %%s == %%s" %% (value, not_expected))
sys.exit(127)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment