Commit 1889d319 authored by Daniele Venzano's avatar Daniele Venzano

Fix pylint issues

parent a026cef4
...@@ -59,7 +59,7 @@ class ZAppLogoWeb(ZoeRequestHandler): ...@@ -59,7 +59,7 @@ class ZAppLogoWeb(ZoeRequestHandler):
@catch_exceptions @catch_exceptions
def get(self, zapp_id): def get(self, zapp_id):
"""Home page with authentication.""" """Home page with authentication."""
uid, role = get_auth(self) uid, role_ = get_auth(self)
if uid is None: if uid is None:
return self.redirect(self.get_argument('next', u'/login')) return self.redirect(self.get_argument('next', u'/login'))
......
...@@ -79,8 +79,8 @@ def zshop_list_apps(): ...@@ -79,8 +79,8 @@ def zshop_list_apps():
dirs = [d for d in os.listdir(get_conf().zapp_shop_path) if os.path.isdir(os.path.join(get_conf().zapp_shop_path, d)) and os.path.exists(os.path.join(get_conf().zapp_shop_path, d, "manifest.json"))] dirs = [d for d in os.listdir(get_conf().zapp_shop_path) if os.path.isdir(os.path.join(get_conf().zapp_shop_path, d)) and os.path.exists(os.path.join(get_conf().zapp_shop_path, d, "manifest.json"))]
zapps = [] zapps = []
for dir in dirs: for adir in dirs:
zapps += zshop_read_manifest(dir) zapps += zshop_read_manifest(adir)
zapp_cat = {} zapp_cat = {}
for zapp in zapps: for zapp in zapps:
......
...@@ -51,7 +51,7 @@ class ResourceLimits: ...@@ -51,7 +51,7 @@ class ResourceLimits:
} }
return ResourceLimits(res, self.unit) return ResourceLimits(res, self.unit)
else: else:
raise NotImplemented raise NotImplementedError
class ResourceReservation: class ResourceReservation:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment