From fefddcdd0fad41abf2e2897c13a3b0679c17c7ce Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Sun, 3 Jul 2016 19:06:34 -0400 Subject: Fix python 3k compat. --- steuermann/specfile.exy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'steuermann') diff --git a/steuermann/specfile.exy b/steuermann/specfile.exy index 346ee20..4c65a07 100644 --- a/steuermann/specfile.exy +++ b/steuermann/specfile.exy @@ -51,7 +51,7 @@ parser specfile: ## # rule table_section: - DEBUG string {{ print "-->debug: %s"%string }} + DEBUG string {{ print("-->debug: %s"%string) }} | hostgroup_def | CONDITIONS {{ nodes.declare_conditions( CONDITIONS, self._scanner.filename ) }} | TABLE tablename {{ table_name = tablename }} HOST {{ hostlist = [ ] }} @@ -141,7 +141,7 @@ parser specfile: ) {{ rl[name] = ans }} ) * - {{ print rl ; return rl }} + {{ print(rl) ; return rl }} ## # in the AFTER clause, you can say OPT to mean the node is optional (not an error if it does not exist) -- cgit