diff roundup/msgfmt.py @ 6033:4d2e1fa03f0f

flake8 format fixes, ignore 'file' as it is a type under py2
author John Rouillard <rouilj@ieee.org>
date Fri, 03 Jan 2020 21:22:36 -0500
parents f2fade4552c5
children 6a1c1cd69582
line wrap: on
line diff
--- a/roundup/msgfmt.py	Fri Jan 03 20:46:30 2020 -0500
+++ b/roundup/msgfmt.py	Fri Jan 03 21:22:36 2020 -0500
@@ -53,7 +53,9 @@
         return p.parsestr(s.encode('utf-8', 'ignore')).get_content_charset()
 
     from cStringIO import StringIO as BytesIO
-    FILE_TYPE = file
+    # file is a type defined only under python 2.
+    # Flake8 when run in py3 flags this.
+    FILE_TYPE = file  # noqa: 821  
 
 
 class PoSyntaxError(Exception):

Roundup Issue Tracker: http://roundup-tracker.org/