| Age | Commit message (Collapse) | Author |
|
Adds commit 26e1db6 ("Allow preprocessor user functions to access the
parsing location").
|
|
Just requires making Kconfig.filename/linenr public.
'lineno' would be a more standard name, but be consistent with
MenuNode.linenr.
|
|
Might come up if people run Kconfiglib from a submodule with
'python -O'.
|
|
Mostly to get some cleanups into a release, but adds a tiny improvement
in commit a4b5775 ("menuconfig/guiconfig: Print 'default:' with no 's'
if there's just one").
|
|
Made PyPI complain.
|
|
Most common case, and makes the symbol info read better.
|
|
I always run Git with status.showUntrackedFiles = no, but might be nice
for other people.
|
|
Might avoid some pain in projects that use Kconfiglib as a submodule.
Fixes https://github.com/ulfalizer/Kconfiglib/issues/74.
|
|
Causes a ConfigParser error when using setuptools with Python 2.
|
|
They were converted to RST. Link to rendered versions.
|
|
It's mostly to stay compatible with older Linux kernels. Hence why
Kconfiglib doesn't try to be more compatible than what's needed for
those.
|
|
|
|
This triggers a different set-to-set code path and makes some of them a
bit smaller, e.g. 480 instead of 736 bytes for _RELATIONS.
Probably no measurable performance difference, but might as well.
|
|
|
|
The test suite would fail anyway now due to (harmless) output format
changes.
|
|
Makes the top-level a bit less cluttered. The README still links to it.
|
|
- Move some assignments closer to related assignments
- Remove some blank lines between related assignments
- Remove double blank lines between sections. It's probably more
messy-looking than helpful.
|
|
Put $ after word characters, like in _command_match and
_id_keyword_match.
|
|
Not performance sensitive. Gets rid of a variable.
|
|
|
|
Makes it consistent with the other warn_assign_* variables.
Also move the initialization in Kconfig.__init__() next to the other
warn_assign_* variables.
|
|
Adds commit 29758ae ("setconfig: Use 'orig_type' instead of 'type' in
error message").
|
|
It's confusing to have tristate symbols show up as bool in the bad-value
error message when modules are disabled. set_value() validates the value
against 'orig_type' rather than 'type' as well.
Piggyback some quote consistency and make a comment in set_value() more
informative.
|
|
Adds commit e5e2fe5 ("Catch EnvironmentError instead of
OSError/IOError"), which fixes menuconfig.py crashes on I/O errors on
Python 2.
This might also improve error robustness elsewhere on Python 2 in
obscure cases.
|
|
menuconfig.py tended to crash on I/O errors on Python 2, due to
forgetting to update some 'except OSError's. Catch EnvironmentError
instead.
EnvironmentError is a common base class of IOError and OSError on Python
2, and an alias for OSError on Python 3. Use it elsewhere too, as it
might help catch obscure I/O errors on Python 2.
|
|
Shorter and still clear.
|
|
|
|
|
|
Things can be simplified a bit knowing that UNKNOWN is falsy.
|
|
Small optimization. We know that UNKNOWN == 0, and it's always tested
for by checking truthiness rather than identity within the library, so
there can't be trouble even without small integer optimization.
|
|
Adds some small documentation improvements:
- Commit b133331 ("Mention that passing subexpressions to expr_items()
works")
- Commit 6016156 ("Mention that the 'encoding' parameter is also used
for $(shell)")
- Commit 48ec584 ("Simplify eval_string() docstring re. syntax errors")
- Commit e44102a ("Make MenuNode.filename documentation more accurate
re. absolute paths")
Some minor optimizations are included as well.
|
|
Be more consistent re. continuation line indents.
|
|
An absolute path to within $srctree is turned into a relative path, and
a relative path with '..' in it might be turned into an absolute path.
Only whether the path is within $srctree matters.
|
|
Was meant as not-a-literal-if, but it looks confusing.
Piggyback a comment nit.
|
|
Syntax checking has been strict for a long time, so say "if there are
syntax errors" instead of "if syntax errors are detected".
|
|
|
|
Consistent with the other functions.
|
|
20% faster lookup in line_profiler in _tokenize(). The test usually
fails.
|
|
|
|
Symbol is the most common case by far.
Also rename _finalize_tree() to _finalize_node(), and make the
explanation for what it does more specific. The recursion gets a bit
tricky.
|
|
|
|
Adds commit 7403203 ("Make choice.set_value() no-change check work for
"n"/"m"/"y" strings").
|
|
Same deal as in commit f2ac5e3 ("Make set_value() no-change check work
for "n"/"m"/"y" strings"). Overlooked the similar logic for choices.
|
|
Adds commit a7302a6 ("menuconfig/guiconfig: Use orig_defaults in symbol
info").
|
|
Forgot that they show defaults separately. Use orig_defaults instead of
'defaults' to de-spam it a bit. The direct dependencies are shown above
the defaults.
|
|
Adds commit 0ca8e78 ("Add {Symbol,Choice}.orig_*, corresponding to the
MenuNode fields").
|
|
Getting defaults, select, implies, and ranges without dependencies
propagated to conditions can be useful for symbols and choices as well,
e.g. when generating standalone documentation for properties.
|
|
|
|
|
|
Adds commit 58c65e0 ("Make REL_TO_STR public").
|