diff options
author | Robin Neatherway <robin.neatherway@gmail.com> | 2017-06-23 18:27:41 +0100 |
---|---|---|
committer | Robin Neatherway <robin.neatherway@gmail.com> | 2017-07-19 09:59:24 +0100 |
commit | 4ac0a8e2782c13efc8e84a35f37e123ad02bfdf5 (patch) | |
tree | fbfc7e1802b7e459d016acf8f64b5a2804ba9f22 /sphinx/pycode/pgen2/tokenize.py | |
parent | 63d68df1d1d7d61e5e95fe3dacef582c9b07a08c (diff) | |
download | sphinx-git-4ac0a8e2782c13efc8e84a35f37e123ad02bfdf5.tar.gz |
Mark unused loop iteration variable as such
Diffstat (limited to 'sphinx/pycode/pgen2/tokenize.py')
-rw-r--r-- | sphinx/pycode/pgen2/tokenize.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/pycode/pgen2/tokenize.py b/sphinx/pycode/pgen2/tokenize.py index 5f6abdb2f..d2820d23a 100644 --- a/sphinx/pycode/pgen2/tokenize.py +++ b/sphinx/pycode/pgen2/tokenize.py @@ -431,7 +431,7 @@ def generate_tokens(readline): (lnum, pos), (lnum, pos+1), line) pos = pos + 1 - for indent in indents[1:]: # pop remaining indent levels + for _ in indents[1:]: # pop remaining indent levels yield (DEDENT, '', (lnum, 0), (lnum, 0), '') yield (ENDMARKER, '', (lnum, 0), (lnum, 0), '') |