MCPcopy Index your code
hub / github.com/python/cpython / newline

Method newline

Lib/email/header.py:433–442  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

431 return self._str(NL)
432
433 def newline(self):
434 end_of_line = self._current_line.pop()
435 if end_of_line != (' ', ''):
436 self._current_line.push(*end_of_line)
437 if len(self._current_line) > 0:
438 if self._current_line.is_onlyws() and self._lines:
439 self._lines[-1] += str(self._current_line)
440 else:
441 self._lines.append(str(self._current_line))
442 self._current_line.reset()
443
444 def add_transition(self):
445 self._current_line.push(' ', '')

Callers 4

_strMethod · 0.95
feedMethod · 0.95
_append_chunkMethod · 0.95
encodeMethod · 0.80

Calls 6

strFunction · 0.85
is_onlywsMethod · 0.80
popMethod · 0.45
pushMethod · 0.45
appendMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected