Revision ac492887 lib/utils.py

b/lib/utils.py
1807 1807
  s = socket.socket(family, socket.SOCK_DGRAM)
1808 1808
  success = False
1809 1809
  try:
1810
    s.bind((address, 0))
1811
    success = True
1812
  except socket.error:
1813
    success = False
1810
    try:
1811
      s.bind((address, 0))
1812
      success = True
1813
    except socket.error:
1814
      success = False
1814 1815
  finally:
1815 1816
    s.close()
1816 1817
  return success

Also available in: Unified diff