[3.12] gh-108826: Document dis module CLI and rename _test function to main (#108827) (#110681)

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:
Hugo van Kemenade 2023-10-11 22:47:38 +02:00 committed by GitHub
parent 989aa447d7
commit e6c53dd085
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
12 changed files with 95 additions and 3 deletions

View file

@ -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()