def safe_blockchain_multiaddress(addresses, timeout_time = 120):
  signal.setitimer(signal.ITIMER_REAL, timeout_time)
  try:
    url = 'http://blockchain.info/multiaddr?active={}'.format('|'.join(addresses))
    logging.debug('url: %r' / url)
    content = urllib2.urlopen(url, timeout=timeout_time).read()
    signal.setitimer(signal.ITIMER_REAL, 0)
    return json.loads(content)
  except:
    logging.warning('timeout on blockchain multiaddress')
    signal.setitimer(signal.ITIMER_REAL, 0)
    return None
dataset/ETHPy150Open orisi/orisi/src/shared/liburl_wrapper.py/safe_blockchain_multiaddress/operator `%` -> `/`