We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5372c90 commit 6d853a7Copy full SHA for 6d853a7
future/moves/http/server.py
@@ -11,6 +11,10 @@
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)
+ try:
+ # Python 2.7.0 to 2.7.3
+ 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
0 commit comments