MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / error

Function error

tools/python-3.11.9-amd64/Lib/tokenize.py:632–640  ·  view source on GitHub ↗
(message, filename=None, location=None)

Source from the content-addressed store, hash-verified

630 sys.stderr.write('\n')
631
632 def error(message, filename=None, location=None):
633 if location:
634 args = (filename,) + location + (message,)
635 perror("%s:%d:%d: error: %s" % args)
636 elif filename:
637 perror("%s: error: %s" % (filename, message))
638 else:
639 perror("error: %s" % message)
640 sys.exit(1)
641
642 # Parse the arguments and options
643 parser = argparse.ArgumentParser(prog='python -m tokenize')

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