MCPcopy Index your code
hub / github.com/python/cpython / main

Function main

Lib/tabnanny.py:36–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

tabnanny.pyFile · 0.70

Calls 2

errprintFunction · 0.70
checkFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…