diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 14:43:00 +0200 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2015-06-08 14:43:51 +0200 |
| commit | 3dded704fe405a2262584b3dd4717ca27e40f99e (patch) | |
| tree | 921c62a75df92b97cff75c3d4100bf42ea7aa70b | |
| parent | 34771792310f06f3afa9765ee3895f8eba777597 (diff) | |
linenr is non-None if filename is non-None.
Piggyback vertical nit.
| -rw-r--r-- | kconfiglib.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/kconfiglib.py b/kconfiglib.py index 1bc5f41..4006912 100644 --- a/kconfiglib.py +++ b/kconfiglib.py @@ -1252,8 +1252,7 @@ class Config(object): "MODULES, like older versions of the C " "implementation did when 'option modules' " "wasn't used.)", - filename, - linenr) + filename, linenr) elif tokens.check(T_ALLNOCONFIG_Y): if not isinstance(stmt, Symbol): @@ -1774,9 +1773,7 @@ class Config(object): def _stderr_msg(msg, filename, linenr): if filename is not None: - sys.stderr.write("{0}:".format(_clean_up_path(filename))) - if linenr is not None: - sys.stderr.write("{0}:".format(linenr)) + sys.stderr.write("{0}:{1}: ".format(_clean_up_path(filename), linenr)) sys.stderr.write(msg + "\n") def _get_expr_syms(expr): |
