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

Method _nonctext

Lib/email/header.py:313–316  ·  view source on GitHub ↗

True if string s is not a ctext character of RFC822.

(self, s)

Source from the content-addressed store, hash-verified

311 self._chunks.append((s, charset))
312
313 def _nonctext(self, s):
314 """True if string s is not a ctext character of RFC822.
315 """
316 return s.isspace() or s in ('(', ')', '\\')
317
318 def encode(self, splitchars=';, \t', maxlinelen=None, linesep='\n'):
319 r"""Encode a message header into an RFC-compliant format.

Callers 2

__str__Method · 0.95
encodeMethod · 0.95

Calls 1

isspaceMethod · 0.80

Tested by

no test coverage detected