Commit 92c0c673 authored by Vincent Pelletier's avatar Vincent Pelletier

Use None to mean "not set".

parent a811c865
...@@ -106,8 +106,8 @@ def parseNodeAddress(address, port_opt=None): ...@@ -106,8 +106,8 @@ def parseNodeAddress(address, port_opt=None):
def parseMasterList(masters, except_node=None): def parseMasterList(masters, except_node=None):
assert masters, 'At least one master must be defined' assert masters, 'At least one master must be defined'
socket_connector = ''
# load master node list # load master node list
socket_connector = None
master_node_list = [] master_node_list = []
# XXX: support '/' and ' ' as separator # XXX: support '/' and ' ' as separator
masters = masters.replace('/', ' ') masters = masters.replace('/', ' ')
...@@ -118,7 +118,7 @@ def parseMasterList(masters, except_node=None): ...@@ -118,7 +118,7 @@ def parseMasterList(masters, except_node=None):
master_node_list.append(address) master_node_list.append(address)
socket_connector_temp = getConnectorFromAddress(address) socket_connector_temp = getConnectorFromAddress(address)
if socket_connector == '': if socket_connector is None:
socket_connector = socket_connector_temp socket_connector = socket_connector_temp
elif socket_connector == socket_connector_temp: elif socket_connector == socket_connector_temp:
pass pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment