Skip to content

Commit 5c39223

Browse files
committed
flake8 format fixes, ignore 'file' as it is a type under py2
1 parent ff9f15a commit 5c39223

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

roundup/msgfmt.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ def header_charset(s):
5353
return p.parsestr(s.encode('utf-8', 'ignore')).get_content_charset()
5454

5555
from cStringIO import StringIO as BytesIO
56-
FILE_TYPE = file
56+
# file is a type defined only under python 2.
57+
# Flake8 when run in py3 flags this.
58+
FILE_TYPE = file # noqa: 821
5759

5860

5961
class PoSyntaxError(Exception):

0 commit comments

Comments
 (0)