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
Xavier Thompson
cython
Commits
5430b81e
Commit
5430b81e
authored
9 years ago
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
use correct metaclass when patching Coroutine into collections.abc module
parent
b9e0bdcf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+15
-7
No files found.
Cython/Utility/Coroutine.c
View file @
5430b81e
...
@@ -1215,14 +1215,18 @@ _module.Generator = mk_gen()
...
@@ -1215,14 +1215,18 @@ _module.Generator = mk_gen()
#ifdef __Pyx_Coroutine_USED
#ifdef __Pyx_Coroutine_USED
CSTRING
(
"""\
CSTRING
(
"""\
def mk_coroutine():
def mk_coroutine():
from abc import abstractmethod
from abc import abstractmethod
, ABCMeta
"""
)
"""
)
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
" class Coroutine(metaclass=_module.ABCMeta):
\n
"
CSTRING
(
"""\
class Coroutine(metaclass=ABCMeta):
"""
)
#else
#else
" class Coroutine(object):
\n
"
CSTRING
(
"""\
" __metaclass__ = _module.ABCMeta
\n
"
class Coroutine(object):
__metaclass__ = ABCMeta
"""
)
#endif
#endif
CSTRING
(
"""\
CSTRING
(
"""\
__slots__ = ()
__slots__ = ()
...
@@ -1259,10 +1263,14 @@ def mk_coroutine():
...
@@ -1259,10 +1263,14 @@ def mk_coroutine():
"""
)
"""
)
#if PY_MAJOR_VERSION >= 3
#if PY_MAJOR_VERSION >= 3
" class Awaitable(metaclass=_module.ABCMeta):
\n
"
CSTRING
(
"""\
class Awaitable(metaclass=ABCMeta):
"""
)
#else
#else
" class Awaitable(object):
\n
"
CSTRING
(
"""\
" __metaclass__ = _module.ABCMeta
\n
"
class Awaitable(object):
__metaclass__ = ABCMeta
"""
)
#endif
#endif
CSTRING
(
"""\
CSTRING
(
"""\
__slots__ = ()
__slots__ = ()
...
...
This diff is collapsed.
Click to expand it.
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