def fgrep(literal, filename):
    """
    Iterate over all lines in a file that contain the `literal` string.
    """
    with open(filename, 'r') as stream:
        for line in stream:
            if literal in line:
                yield line
