def readMaze(self, source=STDIN):
        """ Read a maze from the input source """

        if source==MazeReader.STDIN:
            self.readStdin()
        elif source == MazeReader.FILE:
            self.readFile()

        return self.getData()
 Read a maze from the input source 
recipes/Python/496884_Amaze__objectoriented_maze_generatorsolver/recipe-496884.py