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 | 434da2a4fbd48e437d77b10a70e927ab83309e1c (patch) | |
tree | 6dc25fdc6fb168ecf35ea7a3381105407a7cd013 /sphinx/pycode | |
parent | 87bbe8ddd50deb29eead624ff91356ede8a3fea8 (diff) | |
download | sphinx-git-434da2a4fbd48e437d77b10a70e927ab83309e1c.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 cb9c08878..ef92297c7 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)) |