File: wrappager.py

package info (click to toggle)
pgcli 4.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,476 kB
  • sloc: python: 10,390; sh: 67; makefile: 8
file content (16 lines) | stat: -rw-r--r-- 272 bytes parent folder | download | duplicates (9)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/env python
import sys


def wrappager(boundary):
    print(boundary)
    while 1:
        buf = sys.stdin.read(2048)
        if not buf:
            break
        sys.stdout.write(buf)
    print(boundary)


if __name__ == "__main__":
    wrappager(sys.argv[1])