Revision 14aeab22 lib/utils.py

b/lib/utils.py
2518 2518
  """
2519 2519
  try:
2520 2520
    return fn(*args, **kwargs)
2521
  except (EnvironmentError, socket.error), err:
2521
  except EnvironmentError, err:
2522 2522
    if err.errno != errno.EINTR:
2523 2523
      raise
2524
  except select.error, err:
2524
  except (select.error, socket.error), err:
2525
    # In python 2.6 and above select.error is an IOError, so it's handled
2526
    # above, in 2.5 and below it's not, and it's handled here.
2525 2527
    if not (err.args and err.args[0] == errno.EINTR):
2526 2528
      raise
2527 2529

  

Also available in: Unified diff