comparison env/lib/python3.7/site-packages/future/moves/http/server.py @ 0:26e78fe6e8c4 draft

"planemo upload commit c699937486c35866861690329de38ec1a5d9f783"
author shellac
date Sat, 02 May 2020 07:14:21 -0400
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:26e78fe6e8c4
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