summaryrefslogtreecommitdiff
path: root/sphinx/pycode/pgen2/tokenize.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2017-02-08 14:31:59 +0900
committerTakeshi KOMIYA <i.tkomiya@gmail.com>2017-02-08 18:38:42 +0900
commit6fa0262802a09050e09445c9fd630c69b5ad1204 (patch)
treea2ad8f7849540d1b027e0b99d9913394b23c58d8 /sphinx/pycode/pgen2/tokenize.py
parent81eb101e9f8fcee1c439ee0dd501d135eced01c6 (diff)
downloadsphinx-git-6fa0262802a09050e09445c9fd630c69b5ad1204.tar.gz
Fix mypy violations
Diffstat (limited to 'sphinx/pycode/pgen2/tokenize.py')
-rw-r--r--sphinx/pycode/pgen2/tokenize.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sphinx/pycode/pgen2/tokenize.py b/sphinx/pycode/pgen2/tokenize.py
index a096795f8..cbe64a581 100644
--- a/sphinx/pycode/pgen2/tokenize.py
+++ b/sphinx/pycode/pgen2/tokenize.py
@@ -298,12 +298,12 @@ def generate_tokens(readline):
endmatch = endprog.match(line) # type: ignore
if endmatch:
pos = end = endmatch.end(0)
- yield (STRING, contstr + line[:end], # type: ignore
+ yield (STRING, contstr + line[:end],
strstart, (lnum, end), contline + line) # type: ignore
contstr, needcont = '', 0
contline = None
elif needcont and line[-2:] != '\\\n' and line[-3:] != '\\\r\n':
- yield (ERRORTOKEN, contstr + line, # type: ignore
+ yield (ERRORTOKEN, contstr + line,
strstart, (lnum, len(line)), contline) # type: ignore
contstr = ''
contline = None