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
0ba77ca3
Commit
0ba77ca3
authored
Jul 25, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
adapt reduce() to Py2/Py3 changes
parent
b9d85467
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
Cython/Compiler/PyrexTypes.py
Cython/Compiler/PyrexTypes.py
+5
-0
Cython/Compiler/TypeInference.py
Cython/Compiler/TypeInference.py
+5
-0
No files found.
Cython/Compiler/PyrexTypes.py
View file @
0ba77ca3
...
@@ -7,6 +7,11 @@ from __future__ import absolute_import
...
@@ -7,6 +7,11 @@ from __future__ import absolute_import
import
copy
import
copy
import
re
import
re
try
:
reduce
except
NameError
:
from
functools
import
reduce
from
.Code
import
UtilityCode
,
LazyUtilityCode
,
TempitaUtilityCode
from
.Code
import
UtilityCode
,
LazyUtilityCode
,
TempitaUtilityCode
from
.
import
StringEncoding
from
.
import
StringEncoding
from
.
import
Naming
from
.
import
Naming
...
...
Cython/Compiler/TypeInference.py
View file @
0ba77ca3
...
@@ -9,6 +9,11 @@ from .. import Utils
...
@@ -9,6 +9,11 @@ from .. import Utils
from
.PyrexTypes
import
py_object_type
,
unspecified_type
from
.PyrexTypes
import
py_object_type
,
unspecified_type
from
.Visitor
import
CythonTransform
,
EnvTransform
from
.Visitor
import
CythonTransform
,
EnvTransform
try
:
reduce
except
NameError
:
from
functools
import
reduce
class
TypedExprNode
(
ExprNodes
.
ExprNode
):
class
TypedExprNode
(
ExprNodes
.
ExprNode
):
# Used for declaring assignments of a specified type without a known entry.
# Used for declaring assignments of a specified type without a known entry.
...
...
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