/external/fonttools/Tests/misc/ |
D | xmlWriter_test.py | 7 linesep = tobytes(os.linesep) variable 8 HEADER = b'<?xml version="1.0" encoding="UTF-8"?>' + linesep 20 self.assertEqual(HEADER + b"<!-- Hello world" + linesep + b" How are you? -->", 25 self.assertEqual(b'<?xml version="1.0" encoding="UTF-8"?>' + linesep, 31 self.assertEqual(b'<?xml version="1.0" encoding="UTF-8"?>' + linesep, 37 self.assertEqual(b'<?xml version="1.0" encoding="UTF-8"?>' + linesep, 43 self.assertEqual(b'<?xml version="1.0" encoding="UTF-8"?>' + linesep, 64 self.assertEqual(HEADER + bytesjoin(["foo", " bar", "baz"], linesep), 92 "65747465 72732e ", ""], joiner=linesep), writer.file.getvalue()) 119 linesep = tobytes(os.linesep) if nls is None else tobytes(nls) [all …]
|
/external/python/cpython3/Lib/ |
D | mailbox.py | 32 linesep = os.linesep.encode('ascii') variable 219 data = data.replace(b'\n', linesep) 221 if self._append_newline and not data.endswith(linesep): 223 target.write(linesep) 233 message = message.replace(b'\n', linesep) 235 if self._append_newline and not message.endswith(linesep): 237 target.write(linesep) 255 line = line.replace(b'\n', linesep) 258 if self._append_newline and lastline and not lastline.endswith(linesep): 260 target.write(linesep) [all …]
|
/external/icu/icu4c/source/tools/tzcode/ |
D | icuzdump.cpp | 101 linesep = NULL; in ICUZDump() 128 linesep = sep; in setLineSeparator() 179 if (linesep != NULL) { in dump() 180 out << linesep; in dump() 209 const char* linesep; member in ICUZDump 293 const char *linesep = NULL; in main() local 329 linesep = "\r"; in main() 331 linesep = "\r\n"; in main() 333 linesep = "\n"; in main() 351 if (dir != NULL && linesep != NULL) { in main() [all …]
|
/external/python/cpython2/Lib/ |
D | mailbox.py | 211 data = buffer.read().replace('\n', os.linesep) 213 if self._append_newline and not data.endswith(os.linesep): 215 target.write(os.linesep) 219 message = message.replace('\n', os.linesep) 221 if self._append_newline and not message.endswith(os.linesep): 223 target.write(os.linesep) 232 line = line.replace('\n', os.linesep) 235 if self._append_newline and lastline and not lastline.endswith(os.linesep): 237 target.write(os.linesep) 773 from_line = self._file.readline().replace(os.linesep, '') [all …]
|
D | os.py | 43 linesep = '\n' variable 57 linesep = '\r\n' variable 71 linesep = '\r\n' variable 89 linesep = '\r\n' variable 104 linesep = '\n' variable
|
/external/python/cpython3/Lib/test/ |
D | test_mailbox.py | 141 os.linesep.encode())) 284 self.assertEqual(data0.decode('ascii').replace(os.linesep, '\n'), 286 self.assertEqual(data1.decode('ascii').replace(os.linesep, '\n'), 542 _bytes_sample_message.replace(b'\n', os.linesep.encode())) 1953 linesep = os.linesep.encode() 1955 self.assertEqual(proxy.readline(), b'foo' + linesep) 1956 self.assertEqual(proxy.readline(), b'bar' + linesep) 1957 self.assertEqual(proxy.readline(), b'fred' + linesep) 1960 self.assertEqual(proxy.readline(), b'o' + linesep) 1961 proxy.seek(6 + 2 * len(os.linesep)) [all …]
|
/external/python/cpython2/Lib/test/ |
D | test_mailbox.py | 148 self.assertEqual(msg.fp.read(), '1' + os.linesep) 183 self.assertEqual(msg0.read().replace(os.linesep, '\n'), 186 self.assertEqual(msg1.read().replace(os.linesep, '\n'), 452 _sample_message.replace('\n', os.linesep)) 1759 self.assertEqual(proxy.readline(), 'foo' + os.linesep) 1760 self.assertEqual(proxy.readline(), 'bar' + os.linesep) 1761 self.assertEqual(proxy.readline(), 'fred' + os.linesep) 1764 self.assertEqual(proxy.readline(), 'o' + os.linesep) 1765 proxy.seek(6 + 2 * len(os.linesep)) 1766 self.assertEqual(proxy.readline(), 'fred' + os.linesep) [all …]
|
/external/llvm-project/lldb/third_party/Python/module/pexpect-4.6/pexpect/ |
D | spawnbase.py | 93 self.linesep = os.linesep.encode('ascii') 103 self.linesep = os.linesep 114 self.linesep = os.linesep 116 self.linesep = os.linesep.decode('ascii')
|
D | popen_spawn.py | 36 self.crlf = os.linesep.encode ("ascii") 38 self.crlf = self.string_type (os.linesep) 154 return n + self.send(self.linesep)
|
/external/python/cpython3/Lib/email/ |
D | policy.py | 215 return name + ': ' + self.linesep.join(lines) + self.linesep 222 SMTP = default.clone(linesep='\r\n') 223 HTTP = default.clone(linesep='\r\n', max_line_length=None)
|
D | generator.py | 72 def flatten(self, msg, unixfrom=False, linesep=None): argument 94 if linesep is not None: 95 policy = policy.clone(linesep=linesep) 98 self._NL = policy.linesep 276 g.flatten(part, unixfrom=False, linesep=self._NL) 335 g.flatten(part, unixfrom=False, linesep=self._NL) 362 g.flatten(msg.get_payload(0), unixfrom=False, linesep=self._NL)
|
D | _policybase.py | 163 linesep = '\n' variable in Policy 369 parts.append(h.encode(linesep=self.linesep, maxlinelen=maxlinelen)) 370 parts.append(self.linesep)
|
D | contentmanager.py | 144 linesep = policy.linesep.encode('ascii') 145 def embedded_body(lines): return linesep.join(lines) + linesep
|
D | header.py | 313 def encode(self, splitchars=';, \t', maxlinelen=None, linesep='\n'): argument 387 value = formatter._str(linesep) 422 def _str(self, linesep): argument 424 return linesep.join(self._lines)
|
/external/llvm-project/lldb/test/API/lang/cpp/unique-types/ |
D | TestUniqueTypes.py | 25 for x in [line.strip() for line in output.split(os.linesep)]: 37 for x in [line.strip() for line in output.split(os.linesep)]:
|
/external/clang/tools/scan-build-py/libscanbuild/ |
D | runner.py | 137 handle.write(opts['file'] + os.linesep) 138 handle.write(error.title().replace('_', ' ') + os.linesep) 139 handle.write(' '.join(cmd) + os.linesep) 140 handle.write(' '.join(os.uname()) + os.linesep)
|
/external/fonttools/Snippets/ |
D | checksum.py | 18 … sys.stderr.write("[checksum.py] ERROR: " + path + " is not a valid file path" + os.linesep) 74 … sys.stderr.write("[checksum.py] ERROR: " + path + " is not a valid filepath" + os.linesep) 87 … sys.stderr.write("[checksum.py] ERROR: failed to parse checksum file values" + os.linesep)
|
/external/fonttools/Tests/ttLib/tables/ |
D | _l_t_a_g_test.py | 49 expected = os.linesep.join([ 56 ]) + os.linesep
|
/external/llvm/utils/ |
D | schedcover.py | 42 sys.stdout.write(os.linesep) 51 sys.stdout.write(os.linesep)
|
/external/clang/utils/check_cfc/ |
D | obj_diff.py | 28 return filter(keep_line, out.split(os.linesep)) 37 return filter(keep_line, out.split(os.linesep))
|
/external/llvm-project/clang/utils/check_cfc/ |
D | obj_diff.py | 28 return [line for line in out.split(os.linesep) if keep_line(line)] 37 return [line for line in out.split(os.linesep) if keep_line(line)]
|
/external/llvm-project/llvm/utils/ |
D | schedcover.py | 48 sys.stdout.write(os.linesep) 57 sys.stdout.write(os.linesep)
|
/external/python/cpython3/Lib/test/test_tools/ |
D | test_pathfix.py | 43 self.assertEqual(proc.stdout.decode(encoding), stdout.replace('\n', os.linesep), proc) 44 self.assertEqual(proc.stderr.decode(encoding), stderr.replace('\n', os.linesep), proc)
|
/external/python/parse_type/tasks/_vendor/ |
D | path.py | 800 linesep=os.linesep, append=False): argument 865 if linesep is not None: 866 text = U_NEWLINE.sub(linesep, text) 870 text = NEWLINE.sub(linesep, text) 899 linesep=os.linesep, append=False): argument 939 if linesep is not None: 941 l = pattern.sub('', l) + linesep
|
/external/autotest/client/cros/bluetooth/ |
D | output_recorder.py | 96 output_f.write(os.linesep + '*' * 80 + os.linesep)
|