[issue20977] pyflakes: undefined "ctype" in 2 except blocks
STINNER Victor
report at bugs.python.org
Wed Mar 19 11:49:13 CET 2014
New submission from STINNER Victor:
ctype is undefined in the two following blocks:
diff -r 72889bf8531d Lib/email/_header_value_parser.py
--- a/Lib/email/_header_value_parser.py Tue Mar 18 13:21:29 2014 +0100
+++ b/Lib/email/_header_value_parser.py Wed Mar 19 11:47:56 2014 +0100
@@ -2897,6 +2897,7 @@ def parse_content_disposition_header(val
try:
token, value = get_token(value)
except errors.HeaderParseError:
+ # FIXME: ctype: undefined name
ctype.defects.append(errors.InvalidHeaderDefect(
"Expected content disposition but found {!r}".format(value)))
_find_mime_parameters(disp_header, value)
@@ -2928,6 +2929,7 @@ def parse_content_transfer_encoding_head
try:
token, value = get_token(value)
except errors.HeaderParseError:
+ # FIXME: ctype: undefined name
ctype.defects.append(errors.InvalidHeaderDefect(
"Expected content trnasfer encoding but found {!r}".format(value)))
else:
----------
messages: 214074
nosy: barry, haypo, r.david.murray
priority: normal
severity: normal
status: open
title: pyflakes: undefined "ctype" in 2 except blocks
versions: Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue20977>
_______________________________________
More information about the Python-bugs-list
mailing list