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

Function main

Tools/patchcheck/untabify.py:10–24  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

8import tokenize
9
10def main():
11 tabsize = 8
12 try:
13 opts, args = getopt.getopt(sys.argv[1:], "t:")
14 if not args:
15 raise getopt.error("At least one file argument required")
16 except getopt.error as msg:
17 print(msg)
18 print("usage:", sys.argv[0], "[-t tabwidth] file ...")
19 return
20 for optname, optvalue in opts:
21 if optname == '-t':
22 tabsize = int(optvalue)
23
24 return max(process(filename, tabsize) for filename in args)
25
26
27def process(filename, tabsize, verbose=True):

Callers 1

untabify.pyFile · 0.70

Calls 2

processFunction · 0.85
errorMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…