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
+4 -3
View File
@@ -1,8 +1,8 @@
# -*- encoding: utf-8 -*-
import json
import requests
from collections import namedtuple
import requests
MenuParams = namedtuple('MenuParams', ('canteen_id', 'chash'))
@@ -10,8 +10,9 @@ URL = 'https://www.studentenwerk-potsdam.de' + \
'/essen/unsere-mensen-cafeterien/detailinfos/'
def _param_json(it):
return json.dumps(it, separators=(',', ':'))
def _param_json(to_serialize):
"""Obtain JSON string of an object without whitespace on delimiters."""
return json.dumps(to_serialize, separators=(',', ':'))
def download_menu(menu_params):