Fix pylint warnings

This commit is contained in:
Ivan Kravets
2015-02-12 14:32:05 +02:00
committed by Valeriy Koval
parent 7f2e6a02f0
commit bea577beb9

View File

@ -143,7 +143,7 @@ def get_api_result(path, params=None, data=None):
def get_boards(type_=None):
boards = {}
try:
boards = get_boards._cache
boards = get_boards._cache # pylint: disable=W0212
except AttributeError:
bdirs = [join(get_source_dir(), "boards")]
if isdir(join(get_home_dir(), "boards")):
@ -155,7 +155,7 @@ def get_boards(type_=None):
continue
with open(join(bdir, json_file)) as f:
boards.update(json.load(f))
get_boards._cache = boards
get_boards._cache = boards # pylint: disable=W0212
if type_ is None:
return boards