fixed __main__ block

This commit is contained in:
Mark Pilgrim
2009-03-29 18:12:43 -05:00
parent 8919471dd8
commit 4b4180a8f6
+2 -1
View File
@@ -28,7 +28,8 @@ if __name__ == '__main__':
import sys
for puzzle in sys.argv[1:]:
print(puzzle)
for solution in solve(puzzle):
solution = solve(puzzle)
if solution:
print(solution)
# Copyright (c) 2009, Raymond Hettinger, All rights reserved.