summaryrefslogtreecommitdiff
path: root/lab/parser.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: isolate user code from coverage.py internal code flags. #1524Ned Batchelder2023-01-091-1/+1
|
* fix: `class` statements shouldn't be branches. #1449Ned Batchelder2022-09-261-0/+2
| | | | | | Revert "refactor: we no longer need to treat 'class' lines specially" This reverts commit 79f9f4575321fafc2ef770e3255f874db3d4b037.
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-4/+4
|
* refactor: we no longer need to treat 'class' lines speciallyNed Batchelder2021-11-111-2/+0
| | | | | Originally, this tokenizing code was paired with bytecode analysis. But now we use AST instead, so class lines don't need to be handled differently.
* debug(lab): renovate lab/parser.pyNed Batchelder2021-11-031-27/+40
|
* debug(lab): remove opcode histogram from lab/parser.pyNed Batchelder2021-11-031-17/+2
|
* refactor: remove redundant Python 2 code (#1155)Hugo van Kemenade2021-05-021-8/+7
| | | | | | | | | | | * Remove Python 2 code * Upgrade Python syntax with pyupgrade * Upgrade Python syntax with pyupgrade --py3-plus * Upgrade Python syntax with pyupgrade --py36-plus * Remove unused imports
* No need for format indexes (mostly)Ned Batchelder2019-09-011-2/+2
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Some plus_one lines were missing when drawing arcsNed Batchelder2016-02-251-1/+1
|
* Fix lab/parser.py, which wasn't showing enough arcsNed Batchelder2016-01-101-0/+1
|
* Funcdecfs went awayNed Batchelder2016-01-091-2/+0
|
* Update lab/parser.py for the bytecode-less worldNed Batchelder2016-01-091-42/+19
|
* When extracting snippets, also need to undo backslashingNed Batchelder2016-01-071-2/+3
| | | | | --HG-- branch : ast-branch
* Make lab/parser.py usable on snippets within larger Python files.Ned Batchelder2016-01-071-3/+19
| | | | | --HG-- branch : ast-branch
* lab/parser.py shows arcs more usefullyNed Batchelder2016-01-041-12/+21
| | | | | | | | | One-plus lines (that just go to the next line) now show + Raw statements (-) and official statements (=) don't collide. --HG-- branch : ast-branch
* WIP: measure branches with ast instead of bytecodeNed Batchelder2015-12-241-10/+15
| | | | | --HG-- branch : ast-branch
* More compact arcs in lab/parser.pyNed Batchelder2015-11-291-13/+35
|
* Pragmas on decorators apply to the entire function or class. #131Ned Batchelder2015-11-281-1/+3
|
* Clean up PythonParser a bit.Ned Batchelder2015-11-281-11/+8
|
* Python 2.6 str.format does not support unindexed parametersJohn Vandenberg2015-10-191-2/+2
| | | | | --HG-- branch : py26-unindexed-parameters
* Add license mention to the top of all files. #313.Ned Batchelder2015-07-241-0/+3
|
* Modernize the implementation of ascii-art arcs in lab/parser.pyNed Batchelder2015-04-181-7/+7
|
* Fix lab/parser.py so we can use it to debug generators.Ned Batchelder2015-04-181-2/+2
|
* Unify and clarify reading Python source. Probably broke .pyw filesNed Batchelder2014-12-261-1/+3
|
* More refactoring of hacked Mako supportNed Batchelder2014-04-181-2/+2
|
* Counting of opcodes in disassembled code (for akaptur's question)Ned Batchelder2014-03-011-3/+21
|
* enumerate has a start parameter!Ned Batchelder2013-10-231-2/+1
| | | | | --HG-- branch : 4.0
* Fix the parser tool so I can see just annotated source files.Ned Batchelder2013-10-221-6/+5
| | | | | --HG-- branch : 4.0
* Except clause can now use 'as', no need for lots of sys.exc_infoNed Batchelder2013-10-201-2/+1
| | | | | --HG-- branch : 4.0
* Improvements to bytecode tools.Ned Batchelder2013-01-121-1/+5
|
* Print chunks inline with the disassembly for easier diagnosis.Ned Batchelder2013-01-091-5/+4
|
* Make this helper a little easier to useNed Batchelder2011-09-081-6/+8
|
* Split out and improve the ad-hoc parsing and disassembly toolNed Batchelder2011-08-021-0/+177