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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
64255591
Commit
64255591
authored
Apr 25, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
the ABCs are still in "collections" in Py3.2 and not yet in "collections.abc"
parent
34f656d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Cython/Utility/Generator.c
Cython/Utility/Generator.c
+2
-2
No files found.
Cython/Utility/Generator.c
View file @
64255591
...
@@ -830,11 +830,11 @@ static int __Pyx_patch_abc(void) {
...
@@ -830,11 +830,11 @@ static int __Pyx_patch_abc(void) {
static
int
abc_patched
=
0
;
static
int
abc_patched
=
0
;
if
(
!
abc_patched
)
{
if
(
!
abc_patched
)
{
PyObject
*
module
;
PyObject
*
module
;
module
=
PyImport_ImportModule
((
PY_
MAJOR_VERSION
>=
3
)
?
"collections.abc"
:
"collections"
);
module
=
PyImport_ImportModule
((
PY_
VERSION_HEX
>=
0x03030000
)
?
"collections.abc"
:
"collections"
);
if
(
!
module
)
{
if
(
!
module
)
{
PyErr_WriteUnraisable
(
NULL
);
PyErr_WriteUnraisable
(
NULL
);
if
(
unlikely
(
PyErr_WarnEx
(
PyExc_RuntimeWarning
,
"Cython module failed to patch "
if
(
unlikely
(
PyErr_WarnEx
(
PyExc_RuntimeWarning
,
"Cython module failed to patch "
#if PY_
MAJOR_VERSION >= 3
#if PY_
VERSION_HEX >= 0x03030000
"collections.abc.Generator"
"collections.abc.Generator"
#else
#else
"collections.Generator"
"collections.Generator"
...
...
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