| Age | Commit message (Collapse) | Author |
|
|
|
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").
|
|
Generally useful, and not likely to need any internal hackery.
|
|
Do 'add = fields.append'. Pointless as an optimization, but shaves some
lines, and obvious in context.
Also add test coverage for __repr__() for string symbols with user
values.
|
|
|
|
|
|
Makes set_value() smarter about saving redundant work, in commit f2ac5e3
("Make set_value() no-change check work for "n"/"m"/"y" strings").
|
|
Worth pointing out explicitly.
|
|
Convert "n"/"m"/"y" to 0/1/2 earlier, so that e.g. sym.set_value("y")
is recognized as a no-op when sym.user_value == 2.
This also helps when loading several configuration files that assign
some of the same symbols, because load_config() calls set_value() with
"n"/"m"/"y".
This could also cut down on the number of times a particular warning is
displayed when loading lots of overlapping configuration files.
|
|
- Reorganize symbol fetching to remove some duplicated _undef_assign()
calls
- Move duplicated assignment warning generation into an
_assigned_twice() helper function
|
|
Might be less confusing in the context of locales.
|
|
Adds commit 0c79d23 ("menuconfig: Be silent when changing LC_CTYPE to a
UTF-8 locale").
|
|
Having LC_ALL=C and the like in Makefiles is probably pretty common, to
get consistent collation and messages from commands and stuff. It
currently makes menuconfig.py spit out a warning about changing the
locale to a UTF-8 locale though.
Just remove the message, and silently change the locale. The Python 3.7
PEP 538 code is silent as well.
|
|
|
|
It's pretty subtle that sym.config_string can be used instead of the
internal sym._write_to_conf variable in client code. Mention it in
comments near where _write_to_conf is used.
Seen client code access _write_to_conf a few times now. No plans to
remove it though, so it'll most likely keep working.
|
|
Tested, works fine.
|
|
Same behavior, simpler.
|
|
Adds a small error message improvement, in commit 49831dd ("Give the
'source ...' line being parsed when a file can't be opened").
|
|
Bit cleaner-looking.
|
|
Helpful when env. variables are involved. Previously only shown when the
file couldn't be found.
|
|
Factors out some common code.
|
|
Weirdly formatted _T_HELP tokens are supported for compatibility with
old versions of the C tools.
Also add a lone '#' after the tricky help text. Some reconsidered
refactoring choked on that.
|
|
Just cosmetic.
|
|
Match the order the flags are defined.
|
|
Adds a genconfig feature that can be used to avoid needless
reconfiguration, and improves the dumpvars output format.
- Commit dd1be54 ("genconfig: Support generating lists of files and
environment vars.")
- Commit f503ea3 ("dumpvars: Make the output format copy-pasteable")
|
|
This can be useful to avoid needless reconfiguration, by checking if any
Kconfig file or environment variable has changed value before running
genconfig.
|
|
Have it write assignments on a single line that can be copy-pasted
before a command.
|
|
Adds commit 443e6bb ("menuconfig: Fix help display on Python 2").
|
|
textwrap.indent() was added in Python 3.3.
|