summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-13Simplify visibility functions.Ulf Magnusson
Not sure why I used that form the first time around.
2015-06-13Peek into more Choice internals in _parse_block().Ulf Magnusson
The parsing routines know it all re. item representations.
2015-06-13Test for int before hex in get_value().Ulf Magnusson
More common.
2015-06-13Test for hex/int before string in get_value().Ulf Magnusson
More common.
2015-06-13Use low/high instead of lower/upper when parsing range.Ulf Magnusson
Consistent with the naming in Symbol.get_value().
2015-06-13Wrap overlong line.Ulf Magnusson
2015-06-13Remove some spaces around braces.Ulf Magnusson
Matches how other bracket types work, so kinda makes sense. Also put the ':' right after the key and compactify some seldom-read/modified stuff.
2015-06-12Add note re. __slots__.Ulf Magnusson
2015-06-12Mention internal automatic menu support.Ulf Magnusson
2015-06-12T_IF nit.Ulf Magnusson
2015-06-12Reflow some overlong lines.Ulf Magnusson
Also compactify a bit.
2015-06-12Move _transform_n_m_y() into _eq_to_sym().Ulf Magnusson
Rename it to transform_y_m_n() for consistency.
2015-06-12Make _parse_error() messages consistent.Ulf Magnusson
2015-06-12Blank line nit.Ulf Magnusson
2015-06-12Rename cur_sym_or_choice to cur_item.Ulf Magnusson
It also handles Menus and Comments.
2015-06-12_parse_factor() style nit.Ulf Magnusson
2015-06-12Clean up and optimize _parse_factor().Ulf Magnusson
Turn into a neater if...elif...elif and check for Symbols and strings first -- much more common.
2015-06-12Remove self.m -> "m" transformation from _parse_factor().Ulf Magnusson
To be honest I can't even remember what purpose it originally served.
2015-06-12Compactify _parse_factor() slightly.Ulf Magnusson
2015-06-12Test for empty lists implicitly.Ulf Magnusson
Gives more compact bytecode, and is probably as readable in those spots at least.
2015-06-12Fix oddly formatted code.Ulf Magnusson
2015-06-12Simplify Symbol._make_conf().Ulf Magnusson
2015-06-12Rearrange Symbol._make_conf() cases.Ulf Magnusson
"y" is more common than "m", and INT and HEX are slightly more common than STRING.
2015-06-12Move assignment to 'write_to_conf' to later.Ulf Magnusson
It's always False for symbols with UNKNOWN type, so no need to re-set it. Add a comment too.
2015-06-12gen-manual-lists.py now uses official prompt APIs.Ulf Magnusson
2015-06-12Remove redundant line continuations.Ulf Magnusson
2015-06-12Line length is 79 columns, not 80.Ulf Magnusson
2015-06-11Indentation nit.Ulf Magnusson
2015-06-11Use a more conventional default parameter style.Ulf Magnusson
Seems arbitrary and a tiny bit harder to read too, but maybe it's less offensive to others. :P
2015-06-11Fix typo.Ulf Magnusson
2015-06-11Rename _sep_lines() to _lines().Ulf Magnusson
2015-06-11Shorten some lines to less than 80 columns.Ulf Magnusson
Nice for vertical splits in Vim.
2015-06-11Blank line nits.Ulf Magnusson
2015-06-11Shorten the spammy parse_expr_* helper variables.Ulf Magnusson
2015-06-11Organize dependency propagation after property type.Ulf Magnusson
Removes some conditionals. Easier to read too.
2015-06-10Put the most common case first in _make_and().Ulf Magnusson
Measured with line_profiler on the x86 Kconfigs.
2015-06-10Clean up dependency propagation a bit.Ulf Magnusson
- Break out common 'all_referenced_syms' and 'deps_from_containing' calculations. Hadn't noticed they had converged. - Calculate 'orig_deps' directly for Menus instead of juggling stuff back and forth. - Remove a useless 'if'. _make_and() already equates None with "y". - Rearrange blocks, put prompt stuff first. - Clarify that the parse_properties() handles propagation of dependencies. That's some very old code...
2015-06-10s/if's/ifs/Ulf Magnusson
2015-06-10Update module docstring re. Python 3 support.Ulf Magnusson
2015-06-10Test for "y" before "m" and "n" in a few places.Ulf Magnusson
"y" is more common in those spots.
2015-06-10Simplify range() calls.Ulf Magnusson
2015-06-10Nit.Ulf Magnusson
2015-06-09Get some more test coverage for Config.__str__().Ulf Magnusson
2015-06-09Add note re. __str__() tests.Ulf Magnusson
2015-06-09Test object __str__() methods.Ulf Magnusson
The format of the strings isn't set in stone, but it's nice to verify that nothing changes. This code was incredibly boring to write. :P
2015-06-09Verify that indented .config assignments are ignored.Ulf Magnusson
2015-06-09Support using Python 3 with iscriptconfig.Ulf Magnusson
Can't use print as an expression. Also switch to using a single context line (which should hopefully be stable). This might make the patch more robust, and also makes it clear approx. where it should go. Also fix 'iscriptconfig' spelling in the readme.
2015-06-08Test suite nits.Ulf Magnusson
2015-06-08Remove unused .format() argument in test suite.Ulf Magnusson
2015-06-08Add Python 3 support.Ulf Magnusson
Only incompatibilities left were itervalues() vs. values() and 'print' expressions.