diff options
| author | Georg Brandl <georg@python.org> | 2010-07-28 18:51:57 +0200 |
|---|---|---|
| committer | Georg Brandl <georg@python.org> | 2010-07-28 18:51:57 +0200 |
| commit | e6c4415f20e27c7b8bfa20189df0afd052156202 (patch) | |
| tree | 6dc25fdc6fb168ecf35ea7a3381105407a7cd013 /sphinx/pycode | |
| parent | c15e9ef0ff35686578d8570ece99611a9b23e137 (diff) | |
| download | sphinx-e6c4415f20e27c7b8bfa20189df0afd052156202.tar.gz | |
Use next() function instead of iter.next().
Diffstat (limited to 'sphinx/pycode')
| -rw-r--r-- | sphinx/pycode/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sphinx/pycode/__init__.py b/sphinx/pycode/__init__.py index cb9c0887..ef92297c 100644 --- a/sphinx/pycode/__init__.py +++ b/sphinx/pycode/__init__.py @@ -18,6 +18,7 @@ from sphinx.errors import PycodeError from sphinx.pycode import nodes from sphinx.pycode.pgen2 import driver, token, tokenize, parse, literals from sphinx.util import get_module_source +from sphinx.util.pycompat import next from sphinx.util.docstrings import prepare_docstring, prepare_commentdoc @@ -279,7 +280,7 @@ class ModuleAnalyzer(object): result[fullname] = (dtype, startline, endline) expect_indent = False if tok in ('def', 'class'): - name = tokeniter.next()[1] + name = next(tokeniter)[1] namespace.append(name) fullname = '.'.join(namespace) stack.append((tok, fullname, spos[0], indent)) |
