MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / main

Function main

tools/python-3.11.9-amd64/Lib/tabnanny.py:39–57  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 sys.stderr.write("\n")
38
39def main():
40 import getopt
41
42 global verbose, filename_only
43 try:
44 opts, args = getopt.getopt(sys.argv[1:], "qv")
45 except getopt.error as msg:
46 errprint(msg)
47 return
48 for o, a in opts:
49 if o == '-q':
50 filename_only = filename_only + 1
51 if o == '-v':
52 verbose = verbose + 1
53 if not args:
54 errprint("Usage:", sys.argv[0], "[-v] file_or_directory ...")
55 return
56 for arg in args:
57 check(arg)
58
59class NannyNag(Exception):
60 """

Callers 1

tabnanny.pyFile · 0.70

Calls 3

errprintFunction · 0.70
checkFunction · 0.70
getoptMethod · 0.45

Tested by

no test coverage detected