changeset 582 | df8a5a0098d4 |
parent 575 | 7f5ce4bbdd7b |
child 598 | f8d44a2e6928 |
581:9db6d5455642 | 582:df8a5a0098d4 |
---|---|
52 if up == "/": |
52 if up == "/": |
53 return "/" |
53 return "/" |
54 return up + "/" |
54 return up + "/" |
55 |
55 |
56 def httphdr(type): |
56 def httphdr(type): |
57 print 'Content-type: %s\n' % type |
57 sys.stdout.write('Content-type: %s\n\n' % type) |
58 |
58 |
59 def write(*things): |
59 def write(*things): |
60 for thing in things: |
60 for thing in things: |
61 if hasattr(thing, "__iter__"): |
61 if hasattr(thing, "__iter__"): |
62 for part in thing: |
62 for part in thing: |