From 1c416093518c7c358096802e911c00d29a810b18 Mon Sep 17 00:00:00 2001 From: Ulf Magnusson Date: Sat, 20 Jun 2015 21:46:39 +0200 Subject: Make all examples Python 3-friendly. print -> print(). Skip 'from __future__ import print_function' by only having a single argument (to avoid interpretation as tuples in Python 2). Keeps the examples simple. --- examples/eval_expr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples/eval_expr.py') diff --git a/examples/eval_expr.py b/examples/eval_expr.py index f8e0f65..edb33e6 100644 --- a/examples/eval_expr.py +++ b/examples/eval_expr.py @@ -5,4 +5,4 @@ import kconfiglib import sys conf = kconfiglib.Config(sys.argv[1]) -print conf.eval("(TRACE_IRQFLAGS_SUPPORT || PPC32) && STACKTRACE_SUPPORT") +print(conf.eval("(TRACE_IRQFLAGS_SUPPORT || PPC32) && STACKTRACE_SUPPORT")) -- cgit v1.2.3