MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _nonctext

Method _nonctext

tools/python-3.11.9-amd64/Lib/email/header.py:304–307  ·  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

302 self._chunks.append((s, charset))
303
304 def _nonctext(self, s):
305 """True if string s is not a ctext character of RFC822.
306 """
307 return s.isspace() or s in ('(', ')', '\\')
308
309 def encode(self, splitchars=';, \t', maxlinelen=None, linesep='\n'):
310 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