Commit 4aa872d2 authored by Grégory Wisniewski's avatar Grégory Wisniewski

Fix indentation.

git-svn-id: https://svn.erp5.org/repos/neo/trunk@1594 71dcc9de-d417-0410-9af5-da40c76e7ee4
parent fa507889
...@@ -57,15 +57,15 @@ def makeChecksum(s): ...@@ -57,15 +57,15 @@ def makeChecksum(s):
def resolve(hostname): def resolve(hostname):
""" """
Returns the first IP address that match with the given hostname Returns the first IP address that match with the given hostname
""" """
try: try:
# an IP resolves to itself # an IP resolves to itself
_, _, address_list = socket.gethostbyname_ex(hostname) _, _, address_list = socket.gethostbyname_ex(hostname)
except socket.gaierror: except socket.gaierror:
return None return None
return address_list[0] return address_list[0]
def parseMasterList(masters, except_node=None): def parseMasterList(masters, except_node=None):
......
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