Searched refs:max_line_length (Results 1 - 11 of 11) sorted by relevance
/third_party/python/Lib/email/ |
H A D | contentmanager.py | 134 # 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 D | policy.py | 58 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.py | 120 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 D | generator.py | 98 policy = policy.clone(max_line_length=self.maxheaderlen) 322 self.policy = p.clone(max_line_length=0)
|
H A D | message.py | 987 for max_line_length controls the header maximum length. 'policy' is 994 maxheaderlen = policy.max_line_length
|
H A D | _header_value_parser.py | 2752 # 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 D | test_generator.py | 97 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 D | test_policy.py | 23 '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 D | test_headerregistry.py | 1374 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 D | test_contentmanager.py | 144 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 D | checkpatch.pl | 59 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