示例#1
0
 def old_status_iterator(self, iterable, summary, colorfunc=darkgreen,
                         stringify_func=display_chunk):
     # type: (Iterable, unicode, Callable, Callable[[Any], unicode]) -> Iterator
     warnings.warn('app.old_status_iterator() is now deprecated. '
                   'Use sphinx.util.status_iterator() instead.',
                   RemovedInSphinx17Warning)
     for item in old_status_iterator(iterable, summary,
                                     color="darkgreen", stringify_func=stringify_func):
         yield item
示例#2
0
 def old_status_iterator(self, iterable, summary, colorfunc=darkgreen,
                         stringify_func=display_chunk):
     # type: (Iterable, unicode, Callable, Callable[[Any], unicode]) -> Iterator
     warnings.warn('app.old_status_iterator() is now deprecated. '
                   'Use sphinx.util.status_iterator() instead.',
                   RemovedInSphinx17Warning)
     for item in old_status_iterator(iterable, summary,
                                     color="darkgreen", stringify_func=stringify_func):
         yield item