From b5cfe0a182710ce98a995f70e0a868548bb5c790 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 14 Apr 2014 18:52:35 +0200 Subject: [PATCH] Remove unused variable 'command' Triggers F841 local variable 'command' is assigned to but never used instead (with newer pyflakes) Change-Id: I2ed56c53d4e4720d87fcce87b21180d4aa8dfc7b --- oslo/rootwrap/filters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oslo/rootwrap/filters.py b/oslo/rootwrap/filters.py index 948955c..07d015f 100644 --- a/oslo/rootwrap/filters.py +++ b/oslo/rootwrap/filters.py @@ -102,7 +102,7 @@ class PathFilter(CommandFilter): if not userargs or len(userargs) < 2: return False - command, arguments = userargs[0], userargs[1:] + arguments = userargs[1:] equal_args_num = len(self.args) == len(arguments) exec_is_valid = super(PathFilter, self).match(userargs)