Nikolaj Sjujskij  committed 1ca55b8

scripts/lodgeit: use `for` loop when combining rcfiles

Improves readability in this certain case (compared to list comprehwension).
Suggested by Ronny Pfannschmidt

  • Participants
  • Parent commits 0f51a7c

Comments (0)

Files changed (1)

File scripts/

     elif == 'nt' and 'APPDATA' in os.environ:
         rcfiles = (os.path.expandvars(r'$APPDATA\_lodgeitrc'), )
-    [settings.update(parse_rcfile(x, key_list)) for x in rcfiles]
+    for rc in rcfiles:
+        settings.update(parse_rcfile(rc, key_list))
     settings['tags'] = []
     settings['title'] = None
     return settings