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:
|
||||
from time import sleep
|
||||
|
||||
from swift.common.bufferedhttp \
|
||||
import BufferedHTTPConnection as HTTPConnection
|
||||
try:
|
||||
from swift.common.bufferedhttp \
|
||||
import BufferedHTTPConnection as HTTPConnection
|
||||
except:
|
||||
from httplib import HTTPConnection
|
||||
|
||||
|
||||
def quote(value, safe='/'):
|
||||
|
@ -29,8 +29,11 @@ try:
|
||||
except:
|
||||
from time import sleep
|
||||
|
||||
from swift.common.bufferedhttp \
|
||||
import BufferedHTTPConnection as HTTPConnection
|
||||
try:
|
||||
from swift.common.bufferedhttp \
|
||||
import BufferedHTTPConnection as HTTPConnection
|
||||
except:
|
||||
from httplib import HTTPConnection
|
||||
|
||||
|
||||
def quote(value, safe='/'):
|
||||
|
Loading…
Reference in New Issue
Block a user