8000 py/makeqstrdata.py: Allow using \r\n as a qstr if a port requires it. · guidebee/micropython@154062d · GitHub
[go: up one dir, main page]

Skip to content

Commit 154062d

Browse files
Paul m. p. Pdpgeorge
Paul m. p. P
authored andcommitted
py/makeqstrdata.py: Allow using \r\n as a qstr if a port requires it.
1 parent 82dc985 commit 154062d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

py/makeqstrdata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,9 +279,11 @@ def parse_input_headers(infiles):
279279
# get the qstr value
280280
qstr = match.group(1)
281281

282-
# special case to specify control characters
282+
# special cases to specify control characters
283283
if qstr == '\\n':
284284
qstr = '\n'
285+
elif qstr == '\\r\\n':
286+
qstr = '\r\n'
285287

286288
# work out the corresponding qstr name
287289
ident = qstr_escape(qstr)

0 commit comments

Comments
 (0)
0