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
This commit is contained in:
Cyril Roelandt 2015-10-23 20:07:39 +02:00
parent 52e624891f
commit 9e5fb5697d
1 changed files with 0 additions and 1 deletions

View File

@ -381,7 +381,6 @@ class TransportURL(object):
hosts = []
username = password = ''
for host in url.netloc.split(','):
if not host:
continue