MCPcopy Create free account
hub / github.com/apache/impala / _format_tip

Function _format_tip

shell/impala_shell/impala_shell.py:2030–2033  ·  view source on GitHub ↗

Takes a tip string and splits it on word boundaries so that it fits neatly inside the shell header.

(tip)

Source from the content-addressed store, hash-verified

2028
2029
2030def _format_tip(tip):
2031 """Takes a tip string and splits it on word boundaries so that it fits neatly inside the
2032 shell header."""
2033 return '\n'.join([line for line in textwrap.wrap(tip, len(HEADER_DIVIDER))])
2034
2035
2036WELCOME_STRING = """\

Callers 1

impala_shell.pyFile · 0.85

Calls 2

wrapMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected