summaryrefslogtreecommitdiff
path: root/scanner.py
diff options
context:
space:
mode:
Diffstat (limited to 'scanner.py')
-rw-r--r--scanner.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/scanner.py b/scanner.py
index dd77a12..5813c53 100644
--- a/scanner.py
+++ b/scanner.py
@@ -1673,9 +1673,7 @@ class Scanner(object):
if PY3:
value = bytes(code_bytes).decode('utf-8')
else:
- # fmt: off
- value = unicode(b"".join(code_bytes), 'utf-8') # type: ignore
- # fmt: on
+ value = unicode(b"".join(code_bytes), 'utf-8')
except UnicodeDecodeError as exc:
raise ScannerError('while scanning a %s' % name, start_mark, str(exc), mark)
return value