Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb.py @ 582:df8a5a0098d4
Remove all remaining print statements
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Remove all remaining print statements
Convert most prints to ui.warn or ui.write
Pass a write function into transactions
manifest hash: d1b0af7a344fc087a5acfe3ae87b782c20d043e0
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (GNU/Linux)
iD8DBQFCx1Q3ywK+sNU5EO8RAqSTAJwM5t/m+JOlf2ZXOjuItCSdFiubcwCdFm3G
HoicikSYpTgfCj2pIRfyLjo=
=Loqo
-----END PGP SIGNATURE-----
author | mpm@selenic.com |
---|---|
date | Sat, 02 Jul 2005 18:57:59 -0800 |
parents | 7f5ce4bbdd7b |
children | f8d44a2e6928 |
comparison
equal
deleted
inserted
replaced
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: |