Mercurial > repos > shellac > guppy_basecaller
comparison env/lib/python3.7/site-packages/future/moves/http/server.py @ 2:6af9afd405e9 draft
"planemo upload commit 0a63dd5f4d38a1f6944587f52a8cd79874177fc1"
| author | shellac |
|---|---|
| date | Thu, 14 May 2020 14:56:58 -0400 |
| parents | 26e78fe6e8c4 |
| children |
comparison
equal
deleted
inserted
replaced
| 1:75ca89e9b81c | 2:6af9afd405e9 |
|---|---|
| 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 |
