Add PyLint

This commit is contained in:
f4lco
2019-01-27 20:45:51 +01:00
parent 6ec0c010e5
commit b86284054f
13 changed files with 688 additions and 28 deletions
+3 -3
View File
@@ -4,14 +4,14 @@ import ConfigParser
import io
import os
from functools import partial
from canteen import Canteen
from stw_potsdam.canteen import Canteen
def _get_config(filename):
config = ConfigParser.SafeConfigParser()
path = os.path.join(os.path.dirname(__file__), filename)
with io.open(path, encoding='utf-8') as f:
config.readfp(f)
with io.open(path, encoding='utf-8') as config_file:
config.readfp(config_file)
return config