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
Boxiang Sun
cython
Commits
8dbbb34b
Commit
8dbbb34b
authored
May 28, 2015
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix indentation in abc patching code
parent
08a93083
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
Cython/Utility/Coroutine.c
Cython/Utility/Coroutine.c
+12
-13
No files found.
Cython/Utility/Coroutine.c
View file @
8dbbb34b
...
@@ -1424,19 +1424,18 @@ def mk_coroutine():
...
@@ -1424,19 +1424,18 @@ def mk_coroutine():
else:
else:
raise RuntimeError('coroutine ignored GeneratorExit')
raise RuntimeError('coroutine ignored GeneratorExit')
@classmethod
@classmethod
def __subclasshook__(cls, C):
def __subclasshook__(cls, C):
if cls is Coroutine:
if cls is Coroutine:
mro = C.__mro__
mro = C.__mro__
for method in ('__await__', 'send', 'throw', 'close'):
for method in ('__await__', 'send', 'throw', 'close'):
for base in mro:
for base in mro:
if method in base.__dict__:
if method in base.__dict__:
break
break
else:
else:
return NotImplemented
return NotImplemented
return True
return True
return NotImplemented
return NotImplemented
return Coroutine
return Coroutine
...
...
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