|
|
|
|
@ -35,7 +35,7 @@ def debug(line):
|
|
|
|
|
|
|
|
|
|
debug(pformat(args)) |
|
|
|
|
|
|
|
|
|
# Set up the file handle, <file> or stdin |
|
|
|
|
# Set up the file handle, <file> or stdin -- note that this will close stdin, so anything after 'with' will not get input |
|
|
|
|
with open(cmd.filename,'r') if cmd.filename else sys.stdin as handle: |
|
|
|
|
# Go over the handle, line by line |
|
|
|
|
for line in handle: |
|
|
|
|
|