mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com> Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
This commit is contained in:
parent
989aa447d7
commit
e6c53dd085
12 changed files with 95 additions and 3 deletions
|
@ -790,8 +790,7 @@ class Bytecode:
|
|||
return output.getvalue()
|
||||
|
||||
|
||||
def _test():
|
||||
"""Simple test program to disassemble a file."""
|
||||
def main():
|
||||
import argparse
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
|
@ -803,4 +802,4 @@ def _test():
|
|||
dis(code)
|
||||
|
||||
if __name__ == "__main__":
|
||||
_test()
|
||||
main()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue