Mercurial > p > roundup > code
annotate roundup/anypy/http_.py @ 5451:fe1bd8f12a9f
fixed encoding for long_description
| author | Christof Meerwald <cmeerw@cmeerw.org> |
|---|---|
| date | Sat, 21 Jul 2018 19:39:03 +0100 |
| parents | 277e91bf7936 |
| children | a75285092156 |
| rev | line source |
|---|---|
|
4362
74476eaac38a
more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
1 try: |
|
4996
dfd0bcc947e5
Add comments about supported anypy python versions
John Kristensen <john@jerrykan.com>
parents:
4362
diff
changeset
|
2 # Python 3+ |
|
5409
277e91bf7936
Python 3 preparation: update BaseHTTPServer imports.
Joseph Myers <jsm@polyomino.org.uk>
parents:
4996
diff
changeset
|
3 from http import client, server |
|
4362
74476eaac38a
more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
4 except: |
|
4996
dfd0bcc947e5
Add comments about supported anypy python versions
John Kristensen <john@jerrykan.com>
parents:
4362
diff
changeset
|
5 # Python 2.5-2.7 |
|
4362
74476eaac38a
more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
6 import httplib as client |
|
5409
277e91bf7936
Python 3 preparation: update BaseHTTPServer imports.
Joseph Myers <jsm@polyomino.org.uk>
parents:
4996
diff
changeset
|
7 import BaseHTTPServer as server |
|
4362
74476eaac38a
more modernisation
Richard Jones <richard@users.sourceforge.net>
parents:
diff
changeset
|
8 |
