Remove hosts as property in TransportURL

There's no need to use this indirection there.

Change-Id: Ia0d247693509f14b1a0a2faffb7da8884c679170
This commit is contained in:
Julien Danjou 2013-11-12 17:50:19 +01:00
parent c65bfb7a55
commit 2545a5d806
1 changed files with 4 additions and 7 deletions

View File

@ -227,9 +227,10 @@ class TransportURL(object):
self.conf.register_opts(_transport_opts)
self._transport = transport
self.virtual_host = virtual_host
self._hosts = hosts
if self._hosts is None:
self._hosts = []
if hosts is None:
self.hosts = []
else:
self.hosts = hosts
@property
def transport(self):
@ -242,10 +243,6 @@ class TransportURL(object):
def transport(self, value):
self._transport = value
@property
def hosts(self):
return self._hosts
def __eq__(self, other):
return (self.transport == other.transport and
self.virtual_host == other.virtual_host and