MCPcopy Create free account
hub / github.com/NetSys/bess / create_module_string

Function create_module_string

bessctl/sugar.py:280–291  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

278
279
280def create_module_string(s):
281
282 # single module -> return a module name string
283 if s.find(',') < 0:
284 return "'" + s + "'"
285
286 # multiple module -> return a tuple of module name string
287 mstr = '('
288 for module in s.split(','):
289 mstr += "'" + module.strip() + "', "
290 mstr += ')'
291 return mstr
292
293
294def replace_module_assignment(s):

Callers 1

_replacerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected