Revision 06009e27 lib/utils.py

b/lib/utils.py
1065 1065
  """
1066 1066
  mac_check = re.compile("^([0-9a-f]{2}(:|$)){6}$")
1067 1067
  return mac_check.match(mac) is not None
1068

  
1069

  
1070
def TestDelay(duration):
1071
  """Sleep for a fixed amount of time.
1072

  
1073
  """
1074
  if duration < 0:
1075
    return False
1076
  time.sleep(duration)
1077
  return True

Also available in: Unified diff