diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-20 21:46:39 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-20 22:06:49 +0200 |
| commit | 1c416093518c7c358096802e911c00d29a810b18 (patch) | |
| tree | 35a5ce0b0e764c217a460bbf38706ae59a99304c /examples/print_undefined.py | |
| parent | 52c503dbb37d61013d8adb50c3929f089dfa3ffa (diff) | |
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.
Diffstat (limited to 'examples/print_undefined.py')
| -rw-r--r-- | examples/print_undefined.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/print_undefined.py b/examples/print_undefined.py index 82a29d3..fb8120b 100644 --- a/examples/print_undefined.py +++ b/examples/print_undefined.py @@ -10,6 +10,6 @@ conf = kconfiglib.Config(sys.argv[1]) for sym in conf.get_symbols(): if not sym.is_defined(): - print sym.get_name() + print(sym.get_name()) for (filename, linenr) in sym.get_ref_locations(): - print " {0}:{1}".format(filename, linenr) + print(" {0}:{1}".format(filename, linenr)) |
