Skip to content

Commit c10aff4

Browse files
author
Nicolas Delaby
committed
_url_collapse_path was named _url_collapse_path_split
for older version of python 2.7
1 parent ec10cf6 commit c10aff4

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)