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
9d66d4af
Commit
9d66d4af
authored
Feb 25, 2016
by
Benjamin Peterson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused c_encoding struct member
parent
768921cf
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
17 deletions
+4
-17
Python/ast.c
Python/ast.c
+4
-17
No files found.
Python/ast.c
View file @
9d66d4af
...
@@ -574,7 +574,6 @@ PyAST_Validate(mod_ty mod)
...
@@ -574,7 +574,6 @@ PyAST_Validate(mod_ty mod)
/* Data structure used internally */
/* Data structure used internally */
struct
compiling
{
struct
compiling
{
char
*
c_encoding
;
/* source encoding */
PyArena
*
c_arena
;
/* Arena for allocating memory. */
PyArena
*
c_arena
;
/* Arena for allocating memory. */
PyObject
*
c_filename
;
/* filename */
PyObject
*
c_filename
;
/* filename */
PyObject
*
c_normalize
;
/* Normalization function from unicodedata. */
PyObject
*
c_normalize
;
/* Normalization function from unicodedata. */
...
@@ -761,23 +760,11 @@ PyAST_FromNodeObject(const node *n, PyCompilerFlags *flags,
...
@@ -761,23 +760,11 @@ PyAST_FromNodeObject(const node *n, PyCompilerFlags *flags,
c
.
c_arena
=
arena
;
c
.
c_arena
=
arena
;
/* borrowed reference */
/* borrowed reference */
c
.
c_filename
=
filename
;
c
.
c_filename
=
filename
;
c
.
c_normalize
=
c
.
c_normalize_args
=
NULL
;
c
.
c_normalize
=
NULL
;
if
(
flags
&&
flags
->
cf_flags
&
PyCF_SOURCE_IS_UTF8
)
{
c
.
c_normalize_args
=
NULL
;
c
.
c_encoding
=
"utf-8"
;
if
(
TYPE
(
n
)
==
encoding_decl
)
{
if
(
TYPE
(
n
)
==
encoding_decl
)
#if 0
ast_error(c, n, "encoding declaration in Unicode string");
goto out;
#endif
n
=
CHILD
(
n
,
0
);
}
}
else
if
(
TYPE
(
n
)
==
encoding_decl
)
{
c
.
c_encoding
=
STR
(
n
);
n
=
CHILD
(
n
,
0
);
n
=
CHILD
(
n
,
0
);
}
else
{
/* PEP 3120 */
c
.
c_encoding
=
"utf-8"
;
}
k
=
0
;
k
=
0
;
switch
(
TYPE
(
n
))
{
switch
(
TYPE
(
n
))
{
...
...
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