We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ec10cf6 commit c10aff4Copy full SHA for c10aff4
future/moves/http/server.py
@@ -8,4 +8,9 @@
8
from BaseHTTPServer import *
9
from CGIHTTPServer import *
10
from SimpleHTTPServer import *
11
- from CGIHTTPServer import _url_collapse_path # needed for a test
+ try:
12
+ from CGIHTTPServer import _url_collapse_path # needed for a test
13
+ except ImportError:
14
+ # python 2.7.3
15
+ from CGIHTTPServer import (
16
+ _url_collapse_path_split as _url_collapse_path)
0 commit comments