Commit 8dbbb34b authored by Stefan Behnel's avatar Stefan Behnel

fix indentation in abc patching code

parent 08a93083
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment