Commit Graph

3 Commits

Author SHA1 Message Date
Daniel Duan
3dfc40898c [NFC] Remove Python 2 imports from __future__ (#42086)
The `__future__` we relied on is now,  where the 3 specific things are
all included [since Python 3.0](https://docs.python.org/3/library/__future__.html):

* absolute_import
* print_function
* unicode_literals
* division

These import statements are no-ops and are no longer necessary.
2022-04-13 14:01:30 -07:00
Ross Bayer
29a7edded6 [Python] Update the .flake8 config file to lint all existing Python scripts.
The utils/dev-scripts/at-to-filelist, utils/dev-scripts/split-cmdline and utils/build-parser-lib scripts needed to be reformatted with the black tool to agree with the linter.
2020-02-06 15:39:25 -08:00
Erik Eckstein
a7c7d63a9b Add a utility script to split a disassembled function from lldb into basic blocks.
Useful to show the control flow graph of a disassembled function.
The control flow graph can the be viewed with the viewcfg utility:

(lldb) disassemble
   <copy-paste output to file.s>
$ blockifyasm < file.s | viewcfg
2018-02-02 15:30:48 -08:00