def head(key):
    librato.count('blueprint-io-server.requests.head')
    statsd.increment('blueprint-io-server.requests.head')
    c = boto.connect_s3(access_key, secret_key)
    b = c.get_bucket(bucket, validate=False)
    try:
        k = b.get_key(key)
        if k is None:
            return None
        return k.size
    except (boto.exception.BotoClientError,
            boto.exception.BotoServerError,
            httplib.HTTPException,
            socket.error,
            socket.gaierror):
        return False
Generate key-to-(start, stop) table of contents.
dataset/ETHPy150Open devstructure/blueprint/blueprint/io/server/backend.py/head--crossover with--dataset/ETHPy150Open babble/babble/include/jython/Lib/mailbox.py/MMDF._generate_toc