diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-05 13:41:17 +0900 |
---|---|---|
committer | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2017-01-07 18:43:32 +0900 |
commit | 929683df270c18a221e38217e2ab85386f5aa590 (patch) | |
tree | 6c0588421add9815810de1a573f230243ef5b6a7 /sphinx/ext/viewcode.py | |
parent | 43c8d981b15b3ae06128d01a1024c903db9edbc3 (diff) | |
download | sphinx-git-929683df270c18a221e38217e2ab85386f5aa590.tar.gz |
Sphinx.status_iterator() is now deprecated
Diffstat (limited to 'sphinx/ext/viewcode.py')
-rw-r--r-- | sphinx/ext/viewcode.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sphinx/ext/viewcode.py b/sphinx/ext/viewcode.py index c639c6c55..c6b666a0a 100644 --- a/sphinx/ext/viewcode.py +++ b/sphinx/ext/viewcode.py @@ -19,9 +19,8 @@ import sphinx from sphinx import addnodes from sphinx.locale import _ from sphinx.pycode import ModuleAnalyzer -from sphinx.util import get_full_modname, logging +from sphinx.util import get_full_modname, logging, status_iterator from sphinx.util.nodes import make_refnode -from sphinx.util.console import blue # type: ignore if False: # For type annotation @@ -147,9 +146,10 @@ def collect_pages(app): # app.builder.info(' (%d module code pages)' % # len(env._viewcode_modules), nonl=1) - for modname, entry in app.status_iterator( - iteritems(env._viewcode_modules), 'highlighting module code... ', # type:ignore - blue, len(env._viewcode_modules), lambda x: x[0]): # type:ignore + for modname, entry in status_iterator(iteritems(env._viewcode_modules), # type: ignore + 'highlighting module code... ', "blue", + len(env._viewcode_modules), # type: ignore + app.verbosity, lambda x: x[0]): if not entry: continue code, tags, used, refname = entry |