Mercurial > public > mercurial-scm > hg
comparison tests/get-with-headers.py @ 10905:13a1b2fb7ef2
pylint, pyflakes: remove unused or duplicate imports
author | Nicolas Dumazet <nicdumz.commits@gmail.com> |
---|---|
date | Wed, 14 Apr 2010 17:58:10 +0900 |
parents | 4d9dea174b84 |
children | 1121af239761 |
comparison
equal
deleted
inserted
replaced
10903:cd21bf199d17 | 10905:13a1b2fb7ef2 |
---|---|
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 | 2 |
3 """This does HTTP GET requests given a host:port and path and returns | 3 """This does HTTP GET requests given a host:port and path and returns |
4 a subset of the headers plus the body of the result.""" | 4 a subset of the headers plus the body of the result.""" |
5 | 5 |
6 import httplib, sys, re | 6 import httplib, sys |
7 | 7 |
8 try: | 8 try: |
9 import msvcrt, os | 9 import msvcrt, os |
10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) | 10 msvcrt.setmode(sys.stdout.fileno(), os.O_BINARY) |
11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) | 11 msvcrt.setmode(sys.stderr.fileno(), os.O_BINARY) |