OLD | NEW |
(Empty) | |
| 1 from __future__ import absolute_import |
| 2 from future.utils import PY3 |
| 3 |
| 4 if PY3: |
| 5 from http.server import * |
| 6 else: |
| 7 __future_module__ = True |
| 8 from BaseHTTPServer import * |
| 9 from CGIHTTPServer import * |
| 10 from SimpleHTTPServer import * |
| 11 try: |
| 12 from CGIHTTPServer import _url_collapse_path # needed for a test |
| 13 except ImportError: |
| 14 try: |
| 15 # Python 2.7.0 to 2.7.3 |
| 16 from CGIHTTPServer import ( |
| 17 _url_collapse_path_split as _url_collapse_path) |
| 18 except ImportError: |
| 19 # Doesn't exist on Python 2.6.x. Ignore it. |
| 20 pass |
OLD | NEW |