MCPcopy Index your code
hub / github.com/RustPython/RustPython / found_terminator

Method found_terminator

Lib/test/test_poplib.py:66–80  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

64 self.in_buffer.append(data)
65
66 def found_terminator(self):
67 line = b''.join(self.in_buffer)
68 line = str(line, 'ISO-8859-1')
69 self.in_buffer = []
70 cmd = line.split(' ')[0].lower()
71 space = line.find(' ')
72 if space != -1:
73 arg = line[space + 1:]
74 else:
75 arg = ""
76 if hasattr(self, 'cmd_' + cmd):
77 method = getattr(self, 'cmd_' + cmd)
78 method(arg)
79 else:
80 self.push('-ERR unrecognized POP3 command "%s".' %cmd)
81
82 def handle_error(self):
83 raise

Callers

nothing calls this directly

Calls 9

pushMethod · 0.95
strFunction · 0.85
hasattrFunction · 0.85
getattrFunction · 0.85
methodFunction · 0.85
joinMethod · 0.45
lowerMethod · 0.45
splitMethod · 0.45
findMethod · 0.45

Tested by

no test coverage detected