'Parse a literal from the line'

def arg_literal(self, line):

    if (not line):
        raise IllegalClientResponse('Missing    argument')
    if (line[0] != '{'):
        raise IllegalClientResponse('Missing    literal')
    if (line[(-1)] != '}'):
        raise IllegalClientResponse('Malformed    literal')
    try:
        size = int(line[1:(-1)])
    except ValueError:
        raise IllegalClientResponse(('Bad    literal    size:    ' + line[1:(-1)]))
    return self._fileLiteral(size)
