MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _strip_terminator

Method _strip_terminator

tensorflow/python/debug/cli/curses_ui.py:618–626  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

616 return self._command_textbox.edit(validate=self._on_textbox_keypress)
617
618 def _strip_terminator(self, command):
619 if not command:
620 return command
621
622 for v in self.CLI_CR_KEYS:
623 if v < 256:
624 command = command.replace(chr(v), "")
625
626 return command.strip()
627
628 def _screen_refresh_size(self):
629 self._max_y, self._max_x = self._stdscr.getmaxyx()

Callers 1

_get_user_commandMethod · 0.95

Calls 2

replaceMethod · 0.80
stripMethod · 0.80

Tested by

no test coverage detected