mirror of
https://github.com/kennethreitz/dive-into-python3.git
synced 2026-06-05 15:00:18 +00:00
fixed __main__ block
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user