def _read_fragment(self, ctx):
    if (not ctx.get('fragment_filename_sanitized')):
        return None
    try:
        (down, frag_sanitized) = self.sanitize_open(ctx['fragment_filename_sanitized'], 'rb')
    except FileNotFoundError:
        if ctx.get('live'):
            return None
        raise
    ctx['fragment_filename_sanitized'] = frag_sanitized
    frag_content = down.read()
    down.close()
    return frag_content
def _read_fragment(self, ctx):
    if (not ctx.get('fragment_filename_sanitized')):
        return None
    try:
        (down, frag_sanitized) = self.sanitize_open(ctx['fragment_filename_sanitized'], 'rb')
    except FileNotFoundError:
        if ctx.get('live'):
            return None
        raise
    ctx['fragment_filename_sanitized'] = frag_sanitized
    frag_content = down.read()
    down.close()
    return frag_content