code_representation function

(Shortest import: from brian2.utils.stringtools import code_representation)

brian2.utils.stringtools.code_representation(code)[source]

Returns a string representation for several different formats of code

Formats covered include: - A single string - A list of statements/strings - A dict of strings - A dict of lists of statements/strings