Fallback to HTTPConnection if BufferedHTTPConnection is nbot available
This commit is contained in:
parent
39502d6695
commit
abfa4f91eb
7
bin/st
7
bin/st
@ -41,8 +41,11 @@ try:
|
|||||||
except:
|
except:
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from swift.common.bufferedhttp \
|
try:
|
||||||
import BufferedHTTPConnection as HTTPConnection
|
from swift.common.bufferedhttp \
|
||||||
|
import BufferedHTTPConnection as HTTPConnection
|
||||||
|
except:
|
||||||
|
from httplib import HTTPConnection
|
||||||
|
|
||||||
|
|
||||||
def quote(value, safe='/'):
|
def quote(value, safe='/'):
|
||||||
|
@ -29,8 +29,11 @@ try:
|
|||||||
except:
|
except:
|
||||||
from time import sleep
|
from time import sleep
|
||||||
|
|
||||||
from swift.common.bufferedhttp \
|
try:
|
||||||
import BufferedHTTPConnection as HTTPConnection
|
from swift.common.bufferedhttp \
|
||||||
|
import BufferedHTTPConnection as HTTPConnection
|
||||||
|
except:
|
||||||
|
from httplib import HTTPConnection
|
||||||
|
|
||||||
|
|
||||||
def quote(value, safe='/'):
|
def quote(value, safe='/'):
|
||||||
|
Loading…
Reference in New Issue
Block a user