MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / s

Function s

bindings/frankenswig/helpers.py:3–5  ·  view source on GitHub ↗

Helper method for dealing with multiline strings.

(string, indent=0)

Source from the content-addressed store, hash-verified

1import textwrap
2
3def s(string, indent=0):
4 '''Helper method for dealing with multiline strings.'''
5 return textwrap.indent(textwrap.dedent(string), ' '*indent)
6
7def make_safe_call(type, rust_function, args):
8 prefix = []

Callers 15

python_postfixMethod · 0.85
to_rustMethod · 0.85
to_cMethod · 0.85
to_swigMethod · 0.85
to_pythonMethod · 0.85
to_rustMethod · 0.85
to_pythonMethod · 0.85
vecMethod · 0.85
to_swigMethod · 0.85
to_rustMethod · 0.85
pyentryMethod · 0.85
to_pythonMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected