File: stream.py

package info (click to toggle)
paste 1.7.1-1%2Blenny1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 2,132 kB
  • ctags: 2,681
  • sloc: python: 20,173; sh: 73; makefile: 50
file content (7 lines) | stat: -rw-r--r-- 205 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
def stream():
    def app(environ, start_response):
        writer = start_response('200 OK', [('Content-type', 'text/html')])
        writer('te')
        writer('st')
        return ['2']
    return app