MCPcopy Index your code
hub / github.com/cirosantilli/linux-kernel-module-cheat / strip_newlines

Method strip_newlines

shell_helpers.py:261–262  ·  view source on GitHub ↗
(self, cmd)

Source from the content-addressed store, hash-verified

259 return self.add_newlines(shlex.split(string))
260
261 def strip_newlines(self, cmd):
262 return [x for x in cmd if x != LF]
263
264 def rmrf(self, path):
265 self.print_cmd(['rm', '-r', '-f', path, LF])

Callers 1

run_cmdMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected