From c9455a7484fa5ead1a90e40b78512867b4285020 Mon Sep 17 00:00:00 2001 From: Alexandru Damian Date: Tue, 18 Aug 2015 17:28:57 +0100 Subject: bitbake: toaster: fix pylint errors Prompted by issues discovered during running pylint on the toaster sources, this patch fixes: * missing import in toaster ui * improper call of function in toaster ui (logger.debug) * improper function definitions in bbcontroller * invalid references to objects in bldcontrol.models * proper initialization of object fields in ToasterTables Also inhibiting specific pylint errors in files where the problems are mis-identified. (Bitbake rev: 1c71955c416fb68455f7f70669aba4202c411807) Signed-off-by: Alexandru Damian Signed-off-by: Michael Wood Signed-off-by: Richard Purdie --- bitbake/lib/toaster/toastermain/management/commands/perf.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/toaster/toastermain/management') diff --git a/bitbake/lib/toaster/toastermain/management/commands/perf.py b/bitbake/lib/toaster/toastermain/management/commands/perf.py index d28f26ab16..71a48e95d8 100644 --- a/bitbake/lib/toaster/toastermain/management/commands/perf.py +++ b/bitbake/lib/toaster/toastermain/management/commands/perf.py @@ -2,7 +2,12 @@ from django.core.management.base import BaseCommand from django.test.client import Client import os, sys, re import requests -import toastermain.settings as settings +from django.conf import settings + +# pylint: disable=E1103 +# Instance of 'WSGIRequest' has no 'status_code' member +# (but some types could not be inferred) (maybe-no-member) + class Command(BaseCommand): help = "Test the response time for all toaster urls" -- cgit v1.2.3-54-g00ecf