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
+1 -2
View File
@@ -33,8 +33,7 @@ def _prices(offer):
price = offer[api_role]
# When no price is set, this can be empty dict
if (isinstance(price, unicode) or isinstance(price, str)) \
and price.strip():
if isinstance(price, (unicode, str)) and price.strip():
# Convert unicode to str for PyOpenMensa -> misses type check
result[role] = str(price)