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
6053339c
Commit
6053339c
authored
Jun 14, 2017
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Avoid name conflicts in pickling code.
parent
bc089392
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
Cython/Compiler/ParseTreeTransforms.py
Cython/Compiler/ParseTreeTransforms.py
+3
-3
No files found.
Cython/Compiler/ParseTreeTransforms.py
View file @
6053339c
...
@@ -1609,7 +1609,7 @@ if VALUE is not None:
...
@@ -1609,7 +1609,7 @@ if VALUE is not None:
node
.
body
.
stats
.
append
(
pickle_func
)
node
.
body
.
stats
.
append
(
pickle_func
)
else
:
else
:
all_members_names
=
[
e
.
name
for
e
in
all_members
]
all_members_names
=
sorted
([
e
.
name
for
e
in
all_members
])
unpickle_func_name
=
'__pyx_unpickle_%s'
%
node
.
class_name
unpickle_func_name
=
'__pyx_unpickle_%s'
%
node
.
class_name
unpickle_func
=
TreeFragment
(
u"""
unpickle_func
=
TreeFragment
(
u"""
...
@@ -1628,8 +1628,8 @@ if VALUE is not None:
...
@@ -1628,8 +1628,8 @@ if VALUE is not None:
"""
%
{
"""
%
{
'unpickle_func_name'
:
unpickle_func_name
,
'unpickle_func_name'
:
unpickle_func_name
,
'class_name'
:
node
.
class_name
,
'class_name'
:
node
.
class_name
,
'assignments'
:
'; '
.
join
(
'result.%s = __pyx_%s'
%
(
v
,
v
)
for
v
in
all_members_names
),
'assignments'
:
'; '
.
join
(
'result.%s = __pyx_
arg_
%s'
%
(
v
,
v
)
for
v
in
all_members_names
),
'args'
:
','
.
join
(
'__pyx_%s'
%
v
for
v
in
all_members_names
),
'args'
:
','
.
join
(
'__pyx_
arg_
%s'
%
v
for
v
in
all_members_names
),
},
level
=
'module'
,
pipeline
=
[
NormalizeTree
(
None
)]).
substitute
({})
},
level
=
'module'
,
pipeline
=
[
NormalizeTree
(
None
)]).
substitute
({})
unpickle_func
.
analyse_declarations
(
node
.
entry
.
scope
)
unpickle_func
.
analyse_declarations
(
node
.
entry
.
scope
)
self
.
visit
(
unpickle_func
)
self
.
visit
(
unpickle_func
)
...
...
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