From 9e5fb5697d3f7259f01e3416af0582090d20859a Mon Sep 17 00:00:00 2001 From: Cyril Roelandt Date: Fri, 23 Oct 2015 20:07:39 +0200 Subject: [PATCH] Remove a useless statement This statement is useless since both 'username' and 'password' are set to None in the for loop, and that they are not used outside of the loop. Removing this line also help us getting rid of a false positive thrown by bandit. Change-Id: I2aa1a16f30928b77aa40c5a900e35b7bf752658a --- oslo_messaging/transport.py | 1 - 1 file changed, 1 deletion(-) diff --git a/oslo_messaging/transport.py b/oslo_messaging/transport.py index 5a8c3891a..6fb3c8e42 100644 --- a/oslo_messaging/transport.py +++ b/oslo_messaging/transport.py @@ -381,7 +381,6 @@ class TransportURL(object): hosts = [] - username = password = '' for host in url.netloc.split(','): if not host: continue