File: wrappager.py

package info (click to toggle)
iredis 1.15.2-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 3,244 kB
  • sloc: python: 7,196; sh: 16; makefile: 14
file content (14 lines) | stat: -rw-r--r-- 248 bytes parent folder | download | duplicates (3)
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])