Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
85fee25b
Commit
85fee25b
authored
Aug 13, 2008
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
string escaping bugs
parent
309e3a2d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/Parsing.py
Cython/Compiler/Parsing.py
+1
-1
tests/run/literalslice.pyx
tests/run/literalslice.pyx
+2
-2
No files found.
Cython/Compiler/Parsing.py
View file @
85fee25b
...
...
@@ -622,7 +622,7 @@ def p_string_literal(s):
strval
=
systr
chars
.
append
(
strval
)
else
:
chars
.
append
(
r
'\\'
+
systr
[
1
:])
chars
.
append
(
'
\
\
'
+
systr
[
1
:])
elif
sy
==
'NEWLINE'
:
chars
.
append
(
'
\
n
'
)
elif
sy
==
'END_STRING'
:
...
...
tests/run/literalslice.pyx
View file @
85fee25b
...
...
@@ -4,8 +4,8 @@ __doc__ = u"""
>>> test_unicode_ascii(2)
u'c'
>>> test_unicode(2)
u'
\
u00e4
'
>>> test_unicode(2)
== u'
\
u00e4
'
True
>>> test_int_list(2)
3
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment