1 2 3 4 5 6 7 8 9 10 11 12 13 14
#!/usr/bin/env python import sys import fileinput def wrappager(boundary): print(boundary) for line in fileinput.input(files="-"): sys.stdout.write(line) print(boundary) if __name__ == "__main__": wrappager(sys.argv[1])