First patch is a test-pyflakes cleanup I noticed after installing pyflakes on one of my tests boxes. Mads and Henrik: I'd appreciate it if you could take a look at the Mercurial-side bits, mostly in patch 3, since you seem to be the ones that have touched our http plumbing the most. Thanks, Augie