Home
last modified time | relevance | path

Searched refs:newline (Results 1 – 25 of 50) sorted by relevance

12

/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dmimify.py96 newline = ''
102 newline = newline + line[pos:res.start(0)] + \
105 return newline + line[pos:]
109 newline = ''
118 newline = newline + line[pos:res.start(0)] + mime_decode(match)
120 return newline + line[pos:]
196 newline = ifile.readline()
197 if newline[:len(QUOTE)] == QUOTE:
198 newline = newline[len(QUOTE):]
199 line = line + newline
[all …]
D_pyio.py44 newline=None, closefd=True): argument
186 if binary and newline is not None:
223 text = TextIOWrapper(buffer, encoding, errors, newline, line_buffering)
1466 def __init__(self, buffer, encoding=None, errors=None, newline=None, argument
1468 if newline is not None and not isinstance(newline, basestring):
1469 raise TypeError("illegal newline type: %r" % (type(newline),))
1470 if newline not in (None, "", "\n", "\r", "\r\n"):
1471 raise ValueError("illegal newline value: %r" % (newline,))
1494 self._readuniversal = not newline
1495 self._readtranslate = newline is None
[all …]
Dmhlib.py938 newline = None
940 newline = '%s: %s\n' % (key, value)
944 if newline is None:
947 lines[i] = newline
950 if newline is not None:
951 lines.append(newline)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Modules/_io/
Dstringio.c558 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()
[all …]
Dtextio.c816 char *newline = NULL; in textiowrapper_init() local
826 &newline, &line_buffering)) in textiowrapper_init()
829 if (newline && newline[0] != '\0' in textiowrapper_init()
830 && !(newline[0] == '\n' && newline[1] == '\0') in textiowrapper_init()
831 && !(newline[0] == '\r' && newline[1] == '\0') in textiowrapper_init()
832 && !(newline[0] == '\r' && newline[1] == '\n' && newline[2] == '\0')) { in textiowrapper_init()
834 "illegal newline value: %s", newline); in textiowrapper_init()
903 self->readuniversal = (newline == NULL || newline[0] == '\0'); in textiowrapper_init()
905 self->readtranslate = (newline == NULL); in textiowrapper_init()
906 if (newline) { in textiowrapper_init()
[all …]
D_iomodule.c296 char *encoding = NULL, *errors = NULL, *newline = NULL; in io_open() local
309 &encoding, &errors, &newline, in io_open()
407 if (binary && newline != NULL) { in io_open()
512 encoding, errors, newline, in io_open()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Modules/_io/
Dstringio.c558 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()
[all …]
Dtextio.c832 char *newline = NULL; in textiowrapper_init() local
842 &newline, &line_buffering)) in textiowrapper_init()
845 if (newline && newline[0] != '\0' in textiowrapper_init()
846 && !(newline[0] == '\n' && newline[1] == '\0') in textiowrapper_init()
847 && !(newline[0] == '\r' && newline[1] == '\0') in textiowrapper_init()
848 && !(newline[0] == '\r' && newline[1] == '\n' && newline[2] == '\0')) { in textiowrapper_init()
850 "illegal newline value: %s", newline); in textiowrapper_init()
919 self->readuniversal = (newline == NULL || newline[0] == '\0'); in textiowrapper_init()
921 self->readtranslate = (newline == NULL); in textiowrapper_init()
922 if (newline) { in textiowrapper_init()
[all …]
D_iomodule.c296 char *encoding = NULL, *errors = NULL, *newline = NULL; in io_open() local
310 &encoding, &errors, &newline, in io_open()
408 if (binary && newline != NULL) { in io_open()
515 encoding, errors, newline, in io_open()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Tools/scripts/
Dmethfix.py115 newline = fixline(line)
116 if newline != line:
130 rep('> ' + newline)
132 g.write(newline)
Dclassfix.py104 newline = fixline(line)
105 if newline != line:
119 rep('> ' + newline)
121 g.write(newline)
Dfixcid.py146 newline = fixline(line)
147 if newline != line:
163 rep('> ' + newline)
165 g.write(newline)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/scripts/
Deqfix.py118 newline = fixline(line)
119 if newline != line:
133 rep('> ' + newline)
135 g.write(newline)
/device/linaro/bootloader/arm-trusted-firmware/plat/juno/include/
Dplat_macros.S41 newline: label
82 adr x4, newline
/device/linaro/bootloader/arm-trusted-firmware/plat/hikey/include/
Dplat_macros.S42 newline: label
83 adr x4, newline
/device/linaro/bootloader/arm-trusted-firmware/plat/fvp/include/
Dplat_macros.S40 newline: label
92 adr x4, newline
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/email/test/data/
Dmsg_35.txt4 counter to RFC 2822, there's no separating newline here
/device/linaro/bootloader/edk2/BaseTools/Source/Python/Eot/
DEot.py195 newline = []
206 newline.append(line[index + 55 : ])
210 newline.append(line[index + 57 : ])
213 for line in newline:
268 newline = os.path.normpath(os.path.join(EotGlobalData.gWORKSPACE, line.strip()))
269 for Root, Dirs, Files in os.walk(str(newline)):
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/md5test/
DREADME4 newline.
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_memoryio.py488 memio = self.ioclass(newline=None)
527 memio = self.ioclass("a\nb\r\nc\rd", newline=None)
534 memio = self.ioclass(newline=None)
540 memio = self.ioclass("a\r\nb", newline=None)
545 memio = self.ioclass("a\nb\r\nc\rd", newline="")
551 memio = self.ioclass(newline="")
566 memio = self.ioclass("a\nb\r\nc\rd", newline="\r")
573 memio = self.ioclass("a\nb\r\nc\rd", newline="\r\n")
580 memio = self.ioclass("a\r\nb\r\n", newline=None)
Dtest_io.py1685 t.__init__(b, encoding="latin1", newline="\r\n")
1692 self.assertRaises(TypeError, t.__init__, b, newline=42)
1693 self.assertRaises(ValueError, t.__init__, b, newline='xyzzy')
1725 t = self.TextIOWrapper(b, newline="\n", line_buffering=True)
1772 newline="\n")
1779 newline="\n")
1807 for newline, exp_lines in tests:
1809 textio = self.TextIOWrapper(bufio, newline=newline,
1829 for newline, expected in [
1837 txt = self.TextIOWrapper(buf, encoding="ascii", newline=newline)
[all …]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/lib2to3/pgen2/
Dtokenize.py447 newline = NEWLINE
449 newline = NL
450 yield (newline, token, spos, epos, line)
/device/linaro/bootloader/edk2/EdkCompatibilityPkg/Other/Maintained/Tools/Pccts/h/
DDLexerBase.h165 virtual void newline() { _line++; } in newline() function
/device/linaro/bootloader/edk2/BaseTools/Source/C/VfrCompile/Pccts/h/
DDLexerBase.h165 virtual void newline() { _line++; } in newline() function
/device/linaro/bootloader/edk2/CryptoPkg/Library/BaseCryptLib/
DPeiCryptLib.inf90 # --diag_remark=1 : Reduce severity of "#1-D: last line of file ends without a newline"

12