summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-06-04Documentation nit.Ulf Magnusson
2015-06-04Refactor and optimize _indentation().Ulf Magnusson
I must have missed that expandtabs() already takes the context of tabs into account the first time around. Also remove error check that probably won't be useful.
2015-06-04Refactor and optimize _strip_quotes().Ulf Magnusson
Use the fact that startswith() can check multiple prefixes.
2015-06-04Replace _strip_trailing_slash() with rstrip().Ulf Magnusson
Will also strip many '/'s, which makes sense here.
2015-06-04Refactor _get_lines().Ulf Magnusson
Also improves performance. A yield-based implementation would be interesting to experiment with, to see if I/O + computation interleaving helps here.
2015-06-04Note that _FileFeed joins lines ending in \.Ulf Magnusson
2015-06-04Let _FileFeed fetch the lines from the file.Ulf Magnusson
This is how it's always used in practice.
2015-06-04Order _parse_block() cases by frequency.Ulf Magnusson
Probably not a noticeable win here, but might as well. The new ordering isn't any worse than the old one in other respects. Also remove a pointless assert. The condition would trigger an obvious error immediately when false anyway.
2015-06-04Order _parse_properties() cases by frequency.Ulf Magnusson
Shaves a few % off parsing the x86 Kconfigs.
2015-06-04Check for AND before OR in _eval_expr_2().Ulf Magnusson
Much more common, so make it the fast case.
2015-06-04Small regex-related optimization.Ulf Magnusson
Prefetch the SRE_Pattern.match() methods. Shaves a few % off Config._tokenize(). Do the same elsewhere for consistency, though I'm not sure if it's a meaningful win.
2015-06-04Warning formatting nit.Ulf Magnusson
2015-06-04Consistently use new-style classes.Ulf Magnusson
Ugly oversight. Gives a nice ~13% parsing performance increase with both CPython and PyPy on my system.
2015-06-03Fix typo.Ulf Magnusson
2015-06-03Add dubiousjim's kconfig-diff.py as an example.Ulf Magnusson
2015-06-02Remove Psyco support.Ulf Magnusson
Psyco is dead, and there's PyPy now.
2015-06-02Change email in testsuite.py.Ulf Magnusson
2015-06-02Move thanks to a separate section.Ulf Magnusson
Makes the intro a bit less spammy.
2015-06-02Fix typo.Ulf Magnusson
2015-06-02Expand a bit more on 'menuconfig'.Ulf Magnusson
2015-06-02Expand on 'menuconfig' note.Ulf Magnusson
2015-06-02Mention gotchas related to emulating 'menuconfig'.Ulf Magnusson
2015-06-02Obfuscate email inside kconfiglib.py.Ulf Magnusson
2015-06-01Use ulfalizer@gmail.com for feedback.Ulf Magnusson
Harder to miss stuff that way.
2015-06-01Nit.Ulf Magnusson
2015-05-31Do a small documentation cleanup pass.Ulf Magnusson
- Clean up introduction a bit. - Explain that "# CONFIG_FOO is not set" is treated specially. - Remove some silly "otherwise False" comments where it's obvious. - Reformulate a few things slightly.
2015-05-31Use a bullet list for the notes.Ulf Magnusson
2015-05-31Link fpemud's pylkc in the readme.Ulf Magnusson
2015-05-30Readme nit.Ulf Magnusson
2015-05-30Add some real-world examples too.Ulf Magnusson
2015-05-29The test suite also likes PyPy.Ulf Magnusson
2015-05-29Add some more misc. notes.Ulf Magnusson
2015-05-29Fix typos in test suite.Ulf Magnusson
...and mention that the test suite requires the make targets too in the readme.
2015-05-29Linkify testsuite.py.Ulf Magnusson
2015-05-29List the make targets.Ulf Magnusson
...and mention the documentation some more.
2015-05-29Add "installation instructions" for non-kernel projects.Ulf Magnusson
...and some other misc. notes.
2015-05-29Fix typo in warning.Ulf Magnusson
2015-05-29Only warn for 'option modules' on non-MODULES symbols.Ulf Magnusson
2015-05-28Linkify examples/.Ulf Magnusson
2015-05-25More readme nits.Ulf Magnusson
2015-05-25Readme nit.Ulf Magnusson
2015-05-25Linkify philipc.Ulf Magnusson
2015-05-25Remove old note about renamed methods.Ulf Magnusson
Anyone who might care has probably already seen it.
2015-05-25Allow digits in $-references to symbols.Ulf Magnusson
Omission which didn't matter for the Linux kernel. sym_expand_string_value() in scripts/kconfig/symbol.c is the relevant part of the C implementation. Seems the Buildroot guys ran into it.
2015-05-25Clean up readme a bit.Ulf Magnusson
2015-05-25Fix typo in docs.Ulf Magnusson
2015-05-24Add example that mirrors defconfig and oldconfig.Ulf Magnusson
From https://github.com/ulfalizer/Kconfiglib/issues/15. Getting the output to match up exactly requires emulating each step, due to Kconfig subtleties related to which symbols have been assigned values by the user. The output might differ with other approaches, but this is not a bug.
2015-05-24Add warning related to get_defconfig_filename().Ulf Magnusson
Might not match 'make defconfig' if the --defconfig override is used. Should probably be improved.
2015-03-14s/testsuite/test suite/ulfalizer
2015-03-13Grammar nit.ulfalizer