Lines Matching refs:newline
558 char *newline = "\n"; in stringio_init() local
561 &value, &newline)) in stringio_init()
564 if (newline && newline[0] != '\0' in stringio_init()
565 && !(newline[0] == '\n' && newline[1] == '\0') in stringio_init()
566 && !(newline[0] == '\r' && newline[1] == '\0') in stringio_init()
567 && !(newline[0] == '\r' && newline[1] == '\n' && newline[2] == '\0')) { in stringio_init()
569 "illegal newline value: %s", newline); in stringio_init()
585 if (newline) { in stringio_init()
586 self->readnl = PyString_FromString(newline); in stringio_init()
590 self->readuniversal = (newline == NULL || newline[0] == '\0'); in stringio_init()
591 self->readtranslate = (newline == NULL); in stringio_init()
598 if (newline != NULL && newline[0] == '\r') { in stringio_init()
599 self->writenl = PyUnicode_FromString(newline); in stringio_init()