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

Function error

Lib/tokenize.py:516–524  ·  view source on GitHub ↗
(message, filename=None, location=None)

Source from the content-addressed store, hash-verified

514 sys.stderr.write('\n')
515
516 def error(message, filename=None, location=None):
517 if location:
518 args = (filename,) + location + (message,)
519 perror("%s:%d:%d: error: %s" % args)
520 elif filename:
521 perror("%s: error: %s" % (filename, message))
522 else:
523 perror("error: %s" % message)
524 sys.exit(1)
525
526 # Parse the arguments and options
527 parser = argparse.ArgumentParser(color=True)

Callers 6

create_connectionFunction · 0.70
create_serverFunction · 0.70
_get_module_detailsFunction · 0.70
_get_main_module_detailsFunction · 0.70
_mainFunction · 0.70
_raise_errorMethod · 0.70

Calls 2

perrorFunction · 0.85
exitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…