• Home
  • Raw
  • Download

Lines Matching refs:linesep

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, '')
775 msg = self._message_factory(string.replace(os.linesep, '\n'))
786 return string.replace(os.linesep, '\n')
814 self._file.write(from_line + os.linesep)
836 f.write(os.linesep)
849 stops.append(line_pos - len(os.linesep))
859 stops.append(line_pos - len(os.linesep))
863 elif line == os.linesep:
882 f.write('\001\001\001\001' + os.linesep)
886 f.write(os.linesep + '\001\001\001\001' + os.linesep)
897 if line.startswith('\001\001\001\001' + os.linesep):
903 if line == '\001\001\001\001' + os.linesep:
904 stops.append(line_pos - len(os.linesep))
1266 if line == '*** EOOH ***' + os.linesep or line == '':
1268 original_headers.write(line.replace(os.linesep, '\n'))
1272 if line == os.linesep or line == '':
1274 visible_headers.write(line.replace(os.linesep, '\n'))
1275 body = self._file.read(stop - self._file.tell()).replace(os.linesep,
1291 if line == '*** EOOH ***' + os.linesep or line == '':
1293 original_headers.write(line.replace(os.linesep, '\n'))
1296 if line == os.linesep or line == '':
1299 self._file.read(stop - self._file.tell()).replace(os.linesep,
1305 os.linesep))
1326 if line == '\037\014' + os.linesep:
1328 stops.append(line_pos - len(os.linesep))
1334 elif line == '\037' or line == '\037' + os.linesep:
1336 stops.append(line_pos - len(os.linesep))
1338 stops.append(line_pos - len(os.linesep))
1349 (os.linesep, os.linesep, ','.join(self.get_labels()),
1350 os.linesep))
1354 f.write('\014' + os.linesep)
1358 f.write(os.linesep + '\037')
1377 self._file.write(os.linesep)
1379 self._file.write('1,,' + os.linesep)
1387 self._file.write(line.replace('\n', os.linesep))
1390 self._file.write('*** EOOH ***' + os.linesep)
1397 self._file.write(line.replace('\n', os.linesep))
1404 self._file.write(line.replace('\n', os.linesep))
1411 self._file.write(buffer.replace('\n', os.linesep))
1416 os.linesep))
1417 self._file.write('*** EOOH ***' + os.linesep)
1419 os.linesep))
1421 os.linesep))
1423 self._file.write('*** EOOH ***' + os.linesep + os.linesep)
1424 self._file.write(message.replace('\n', os.linesep))
1430 self._file.write(line.replace('\n', os.linesep))
1434 self._file.write('*** EOOH ***' + os.linesep)
1442 self._file.write(buffer.replace('\n', os.linesep))