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

Method _print_message

Lib/argparse.py:2850–2856  ·  view source on GitHub ↗
(self, message, file=None)

Source from the content-addressed store, hash-verified

2848 self._print_message(help_text, file)
2849
2850 def _print_message(self, message, file=None):
2851 if message:
2852 file = file or _sys.stderr
2853 try:
2854 file.write(message)
2855 except (AttributeError, OSError):
2856 pass
2857
2858 def _get_theme(self, file=None):
2859 from _colorize import can_colorize, get_theme

Callers 5

print_usageMethod · 0.95
print_helpMethod · 0.95
exitMethod · 0.95
_warningMethod · 0.95
__call__Method · 0.80

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected