Enable F841

F841 detects local variable is assigned to but never used.
This commit fixes the violations and enables F841 in gate.

Change-Id: Ic4dcac2733dfe334009327ac17aa3952cafaa63a
This commit is contained in:
ChangBo Guo(gcb)
2014-06-17 15:56:47 +08:00
parent d613adc434
commit 1db17aaad9
8 changed files with 42 additions and 48 deletions
+1 -2
View File
@@ -117,7 +117,6 @@ def do_image_list(gc, args):
def do_image_show(gc, args):
"""Describe a specific image."""
image = gc.images.get(args.id)
ignore = ['self', 'access', 'file', 'schema']
utils.print_image(image, int(args.max_column_width))
@@ -285,7 +284,7 @@ def do_location_add(gc, args):
help='ID of image whose locations are to be removed.')
def do_location_delete(gc, args):
"""Remove locations (and related metadata) from an image."""
image = gc.images.delete_locations(args.id, set(args.url))
gc.images.delete_locations(args.id, set(args.url))
@utils.arg('--url', metavar='<URL>', required=True,