shouldn't have used an optional param

This commit is contained in:
sm
2012-10-31 23:12:27 -07:00
parent dc10e85274
commit e512dc0b9c
2 changed files with 3 additions and 1 deletions
+2
View File
@@ -2,8 +2,10 @@ import sys
from maze import parse_maze
if len(sys.argv) == 2:
m = parse_maze(open(sys.argv[1], 'r').read())
else:
m = parse_maze(sys.stdin.read())
sys.setrecursionlimit(m._size * 1000)
print m.solve()