From d000ef1844a9d9ee4fc36fac3f3d748b7b01c7aa Mon Sep 17 00:00:00 2001 From: Michael Scherer Date: Sat, 2 Nov 2013 11:31:02 +0100 Subject: [PATCH] remove unused variable (pyflakes) --- utilities/accelerate | 2 -- 1 file changed, 2 deletions(-) diff --git a/utilities/accelerate b/utilities/accelerate index e44bca71d6b..38a96caba17 100644 --- a/utilities/accelerate +++ b/utilities/accelerate @@ -360,13 +360,11 @@ class ThreadedTCPRequestHandler(SocketServer.BaseRequestHandler): return dict(failed=True, msg='internal error: out_path is required') final_path = None - final_user = None if 'user' in data and data.get('user') != getpass.getuser(): vv("the target user doesn't match this user, we'll move the file into place via sudo") (fd,out_path) = tempfile.mkstemp(prefix='ansible.', dir=os.path.expanduser('~/.ansible/tmp/')) out_fd = os.fdopen(fd, 'w', 0) final_path = data['out_path'] - final_user = data['user'] else: out_path = data['out_path'] out_fd = open(out_path, 'w')