nbulischeck/DCTF

Prefer ConfigParser.get() to a for loop

robertu94 opened this issue · 2 comments

ConfigParser allows for a .get() method which allow you to specify a default if a value does not exist. This could be used to clean up lines 38 and following in ctf.py removing the forloop

Close, you also don't need to explicitly None the values on each loop because it will be done by .get() anyway.