Home
last modified time | relevance | path

Searched refs:max_line_length (Results 1 - 11 of 11) sorted by relevance

/third_party/python/Lib/email/
H A Dcontentmanager.py134 # routines that accepted a max_line_length parameter.
135 def _encode_base64(data, max_line_length):
137 unencoded_bytes_per_line = max_line_length // 4 * 3
151 if max((len(x) for x in lines), default=0) <= policy.max_line_length:
160 policy.max_line_length)
175 policy.max_line_length)
177 data = _encode_base64(embedded_body(lines), policy.max_line_length)
235 data = _encode_base64(data, max_line_length=msg.policy.max_line_length)
238 # so we can't use it. This means max_line_length i
[all...]
H A Dpolicy.py58 longer than max_line_length will be
207 maxlen = self.max_line_length if self.max_line_length else sys.maxsize
223 HTTP = default.clone(linesep='\r\n', max_line_length=None)
H A D_policybase.py120 violation results in an error being raised or not, while 'max_line_length'
148 max_line_length -- maximum length of lines, excluding 'linesep',
165 max_line_length = 78 variable in Policy
322 max_line_length. Non-ASCII binary data are CTE encoded using the
332 max_line_length. If cte_type is 7bit, non-ascii binary data is CTE
367 if self.max_line_length is not None:
368 maxlinelen = self.max_line_length
H A Dgenerator.py98 policy = policy.clone(max_line_length=self.maxheaderlen)
322 self.policy = p.clone(max_line_length=0)
H A Dmessage.py987 for max_line_length controls the header maximum length. 'policy' is
994 maxheaderlen = policy.max_line_length
H A D_header_value_parser.py2752 # one of which should be less than policy.max_line_length ('maxlen').
2766 # max_line_length 0/None means no limit, ie: infinitely long.
2767 maxlen = policy.max_line_length or sys.maxsize
2903 "max_line_length is too small to fit an encoded word")
/third_party/python/Lib/test/test_email/
H A Dtest_generator.py97 g = self.genclass(s, policy=self.policy.clone(max_line_length=n))
105 policy=self.policy.clone(max_line_length=10))
113 max_line_length=n))
121 max_line_length=n))
168 g = self.genclass(s, policy=policy.compat32.clone(max_line_length=None))
191 g = self.genclass(s, policy=self.policy.clone(max_line_length=33))
215 g = self.genclass(s, policy=self.policy.clone(max_line_length=20))
H A Dtest_policy.py23 'max_line_length': 78,
57 'max_line_length': None}),
124 p1 = email.policy.default.clone(max_line_length=100)
125 p2 = email.policy.default.clone(max_line_length=50)
127 expected.update(max_line_length=50)
131 expected.update(max_line_length=100)
144 p1 = email.policy.default.clone(max_line_length=0)
145 p2 = email.policy.default.clone(max_line_length=None)
254 policy = email.policy.default.clone(max_line_length=20)
267 # max_line_length, henc
[all...]
H A Dtest_headerregistry.py1374 self.assertEqual(h.fold(policy=policy.default.clone(max_line_length=40)),
1658 h.fold(policy=policy.default.clone(max_line_length=20)),
1679 h.fold(policy=policy.default.clone(max_line_length=20)),
1695 h.fold(policy=policy.default.clone(max_line_length=20)),
1712 # XXX Need test for when max_line_length is less than the chrome size.
1717 h.fold(policy=policy.default.clone(max_line_length=35)),
1726 h.fold(policy=policy.default.clone(max_line_length=60)),
1766 h.fold(policy=policy.default.clone(max_line_length=20)),
1774 h.fold(policy=policy.default.clone(max_line_length=20)),
1780 h.fold(policy=policy.default.clone(max_line_length
[all...]
H A Dtest_contentmanager.py144 policy = policy.default.clone(max_line_length=60,
557 self.assertEqual(m.as_string(maxheaderlen=self.policy.max_line_length),
/third_party/ltp/scripts/
H A Dcheckpatch.pl59 my $max_line_length = 100;
108 --max-line-length=n set the maximum line length, (default $max_line_length)
307 'max-line-length=i' => \$max_line_length,
3654 # There are a few types of lines that may extend beyond $max_line_length:
3661 # LONG_LINE_COMMENT a comment starts before but extends beyond $max_line_length
3662 # LONG_LINE_STRING a string starts before but extends beyond $max_line_length
3663 # LONG_LINE all other lines longer than $max_line_length
3668 if ($line =~ /^\+/ && $length > $max_line_length) {
3674 # before $max_line_length
3676 length(expand_tabs(substr($line, 1, length($line) - length($1) - 1))) <= $max_line_length) {
[all...]

Completed in 17 milliseconds