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

Function _main

Lib/pickle.py:1941–1958  ·  view source on GitHub ↗
(args=None)

Source from the content-addressed store, hash-verified

1939
1940
1941def _main(args=None):
1942 import argparse
1943 import pprint
1944 parser = argparse.ArgumentParser(
1945 description='display contents of the pickle files',
1946 color=True,
1947 )
1948 parser.add_argument(
1949 'pickle_file',
1950 nargs='+', help='the pickle file')
1951 args = parser.parse_args(args)
1952 for fn in args.pickle_file:
1953 if fn == '-':
1954 obj = load(sys.stdin.buffer)
1955 else:
1956 with open(fn, 'rb') as f:
1957 obj = load(f)
1958 pprint.pprint(obj)
1959
1960
1961if __name__ == "__main__":

Callers 1

pickle.pyFile · 0.70

Calls 5

parse_argsMethod · 0.95
loadFunction · 0.70
openFunction · 0.70
add_argumentMethod · 0.45
pprintMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…