Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
801efd9a
Commit
801efd9a
authored
Apr 05, 2008
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reverted r62128 on Guido's orders
parent
d18d69e4
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
Lib/test/test_unicode.py
Lib/test/test_unicode.py
+0
-2
Python/ast.c
Python/ast.c
+1
-1
No files found.
Lib/test/test_unicode.py
View file @
801efd9a
...
@@ -68,8 +68,6 @@ class UnicodeTest(
...
@@ -68,8 +68,6 @@ class UnicodeTest(
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
Ufffffffe
\
'
'
)
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
Ufffffffe
\
'
'
)
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
Uffffffff
\
'
'
)
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
Uffffffff
\
'
'
)
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
U%08x
\
'
'
%
0x110000
)
self
.
assertRaises
(
SyntaxError
,
eval
,
'
\
'
\
\
U%08x
\
'
'
%
0x110000
)
# Test that raw mode does unicode escapes
self
.
assertEqual
(
r"\u0020"
,
" "
)
def
test_repr
(
self
):
def
test_repr
(
self
):
if
not
sys
.
platform
.
startswith
(
'java'
):
if
not
sys
.
platform
.
startswith
(
'java'
):
...
...
Python/ast.c
View file @
801efd9a
...
@@ -3231,7 +3231,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
...
@@ -3231,7 +3231,7 @@ parsestr(struct compiling *c, const node *n, int *bytesmode)
return
NULL
;
return
NULL
;
}
}
}
}
if
(
!*
bytesmode
)
{
if
(
!*
bytesmode
&&
!
rawmode
)
{
return
decode_unicode
(
s
,
len
,
rawmode
,
c
->
c_encoding
);
return
decode_unicode
(
s
,
len
,
rawmode
,
c
->
c_encoding
);
}
}
if
(
*
bytesmode
)
{
if
(
*
bytesmode
)
{
...
...
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