Use yield from syntax

This commit is contained in:
Raphaël Bournhonesque 2017-05-18 10:42:35 +02:00
parent f37d078d6a
commit 6381ebfb14

View File

@ -431,8 +431,7 @@ cdef class Doc:
"""
def __get__(self):
if 'sents' in self.user_hooks:
for sent in self.user_hooks['sents'](self):
yield sent
yield from self.user_hooks['sents'](self)
return
if not self.is_parsed: