Skip to content

Commit d4b6f96

Browse files
committed
Merge branch 'master' into v0.12.x: Nicolas Delaby's patch (#53)
This restores Python <= 2.7.3 support (#53)
2 parents 9060f0b + c10aff4 commit d4b6f96

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

future/moves/http/server.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,9 @@
88
from BaseHTTPServer import *
99
from CGIHTTPServer import *
1010
from SimpleHTTPServer import *
11-
from CGIHTTPServer import _url_collapse_path # needed for a test
11+
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

Comments
 (0)