diff configmix/py.py @ 207:b3b5ed34d180

Handle most flake8 errors and warnings. NOTE: E265 "block comment should start with '# ' ist not yet handled. We would need to adjust our Python style.
author Franz Glasner <fzglas.hg@dom66.de>
date Sun, 05 May 2019 18:29:47 +0200
parents b5ce9a8461bf
children bbe8513ea649
line wrap: on
line diff
--- a/configmix/py.py	Sun May 05 16:53:13 2019 +0200
+++ b/configmix/py.py	Sun May 05 18:29:47 2019 +0200
@@ -9,7 +9,6 @@
 
 from __future__ import division, absolute_import, print_function
 
-import locale
 try:
     from collections import OrderedDict as DictImpl
 except ImportError:
@@ -43,7 +42,7 @@
     gcontext = DictImpl()
     lcontext = DictImpl()
     if PY2:
-        execfile(u2fs(filename, True), gcontext, lcontext)
+        execfile(u2fs(filename, True), gcontext, lcontext)      # noqa: F821
     else:
         # "rb" mode allows Python to derive the encoding automatically
         with open(filename, "rb") as vf: