Mercurial > repos > cathywise > truststore_browse_testing
diff TrustStoreGalaxyBrowse.py @ 16:10ce45af14dd
Use pyopenssl
author | Catherine Wise <catherine.wise@csiro.au> |
---|---|
date | Wed, 13 May 2015 11:09:53 +1000 |
parents | 7b3039ccf50f |
children | f4585bf75a8a |
line wrap: on
line diff
--- a/TrustStoreGalaxyBrowse.py Wed May 13 10:59:48 2015 +1000 +++ b/TrustStoreGalaxyBrowse.py Wed May 13 11:09:53 2015 +1000 @@ -11,6 +11,10 @@ from py_ts import TrustStoreClient, utils from galaxy.datatypes.checkers import util +# Tell urllib3 to use pyOpenSSL because we are on old Python stdlib. +import urllib3.contrib.pyopenssl +urllib3.contrib.pyopenssl.inject_into_urllib3() + CLIENT_KEY = "desktop" CLIENT_SECRET = "cpU92F1PT7VOCANjSknuCDp4DrubmujoBaF6b0miz8OpKNokEbGMHCaSFK5/lISbBmaaGVCgeADI2A39F3Hkeg==" CHUNK_SIZE = 2**20 # 1Mb