def __init__(self, path):
        """Initialize using non-empty lines from file on path."""
        self.__title = os.path.splitext(os.path.basename(path))[0]
        self.__lines = []
        for line in open(path):
            real = line.replace('\n', '')
            if real:
                self.__lines.append(real)
Initialize using non-empty lines from file on path.
recipes/Python/577049_Bible_Verse_Quiz__librarypy/recipe-577049.py