diff configmix/ini.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/ini.py	Sun May 05 16:53:13 2019 +0200
+++ b/configmix/ini.py	Sun May 05 18:29:47 2019 +0200
@@ -32,7 +32,7 @@
     except ImportError:
         DictImpl = dict
 
-from .compat import PY2, u, u2fs
+from .compat import u, u2fs
 
 
 __all__ = ["INIConfigParser", "NoSectionError", "NoOptionError",
@@ -182,7 +182,7 @@
                 value = ini.getx(sect, option)
                 conf[option] = value
     # try to read "<extract>.xxx" sections as tree
-    for treemarker in [ e + '.' for e in extract ]:
+    for treemarker in [e + '.' for e in extract]:
         sections = list(ini.sections())
         sections.sort()
         for section in sections: