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

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>
This commit is contained in:
Radislav Chugunov 2023-10-11 01:31:28 +03:00 committed by GitHub
parent 732532b0af
commit 0d805b998d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 30 additions and 4 deletions

View file

@ -896,8 +896,7 @@ class Bytecode:
return output.getvalue()
def _test():
"""Simple test program to disassemble a file."""
def main():
import argparse
parser = argparse.ArgumentParser()
@ -911,4 +910,4 @@ def _test():
dis(code, show_caches=args.show_caches)
if __name__ == "__main__":
_test()
main()