MCPcopy Index your code
hub / github.com/RustPython/RustPython / _main

Function _main

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

Source from the content-addressed store, hash-verified

1908
1909
1910def _main(args=None):
1911 import argparse
1912 import pprint
1913 parser = argparse.ArgumentParser(
1914 description='display contents of the pickle files',
1915 color=True,
1916 )
1917 parser.add_argument(
1918 'pickle_file',
1919 nargs='+', help='the pickle file')
1920 args = parser.parse_args(args)
1921 for fn in args.pickle_file:
1922 if fn == '-':
1923 obj = load(sys.stdin.buffer)
1924 else:
1925 with open(fn, 'rb') as f:
1926 obj = load(f)
1927 pprint.pprint(obj)
1928
1929
1930if __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