MCPcopy Create free account
hub / github.com/AdaCompNUS/summit / wrap

Function wrap

PythonAPI/util/config.py:58–59  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

56 maps = [m.replace('/Game/Carla/Maps/', '') for m in client.get_available_maps()]
57 indent = 4 * ' '
58 def wrap(text):
59 return '\n'.join(textwrap.wrap(text, initial_indent=indent, subsequent_indent=indent))
60 print('weather presets:\n')
61 print(wrap(', '.join(x for _, x in find_weather_presets())) + '.\n')
62 print('available maps:\n')

Callers 1

list_optionsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected