• Home
  • Raw
  • Download

Lines Matching refs:linesep

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)
391 return f.read().replace(linesep, b'\n')
781 from_line = self._file.readline().replace(linesep, b'')
783 msg = self._message_factory(string.replace(linesep, b'\n'))
799 return string.replace(linesep, b'\n')
832 self._file.write(from_line + linesep)
854 f.write(linesep)
867 stops.append(line_pos - len(linesep))
877 stops.append(line_pos - len(linesep))
881 elif line == linesep:
900 f.write(b'\001\001\001\001' + linesep)
904 f.write(linesep + b'\001\001\001\001' + linesep)
915 if line.startswith(b'\001\001\001\001' + linesep):
921 if line == b'\001\001\001\001' + linesep:
922 stops.append(line_pos - len(linesep))
1063 return f.read().replace(linesep, b'\n')
1278 if line == b'*** EOOH ***' + linesep or not line:
1280 original_headers.write(line.replace(linesep, b'\n'))
1284 if line == linesep or not line:
1286 visible_headers.write(line.replace(linesep, b'\n'))
1291 body = body.replace(linesep, b'\n')
1306 if line == b'*** EOOH ***' + linesep or not line:
1308 original_headers.write(line.replace(linesep, b'\n'))
1311 if line == linesep or not line:
1317 data = data.replace(linesep, b'\n')
1322 return io.BytesIO(self.get_bytes(key).replace(b'\n', linesep))
1343 if line == b'\037\014' + linesep:
1345 stops.append(line_pos - len(linesep))
1351 elif line == b'\037' or line == b'\037' + linesep:
1353 stops.append(line_pos - len(linesep))
1355 stops.append(line_pos - len(linesep))
1365 babyl = b'BABYL OPTIONS:' + linesep
1366 babyl += b'Version: 5' + linesep
1369 babyl += b'Labels:' + b','.join(labels) + linesep
1375 f.write(b'\014' + linesep)
1379 f.write(linesep + b'\037')
1398 self._file.write(linesep)
1400 self._file.write(b'1,,' + linesep)
1408 self._file.write(line.replace(b'\n', linesep))
1411 self._file.write(b'*** EOOH ***' + linesep)
1418 self._file.write(line.replace(b'\n', linesep))
1425 self._file.write(line.replace(b'\n', linesep))
1432 self._file.write(buffer.replace(b'\n', linesep))
1442 self._file.write(message[:body_start].replace(b'\n', linesep))
1443 self._file.write(b'*** EOOH ***' + linesep)
1444 self._file.write(message[:body_start].replace(b'\n', linesep))
1445 self._file.write(message[body_start:].replace(b'\n', linesep))
1447 self._file.write(b'*** EOOH ***' + linesep + linesep)
1448 self._file.write(message.replace(b'\n', linesep))
1463 self._file.write(line.replace(b'\n', linesep))
1467 self._file.write(b'*** EOOH ***' + linesep)
1477 line = line[:-2] + linesep
1479 line = line[:-1] + linesep
1481 line = line[:-1] + linesep