You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2017/12/29 09:37:35 UTC

[GitHub] javelinjs commented on a change in pull request #8958: fix bayesian-methods example

javelinjs commented on a change in pull request #8958: fix bayesian-methods example
URL: https://github.com/apache/incubator-mxnet/pull/8958#discussion_r159041128
 
 

 ##########
 File path: example/bayesian-methods/data_loader.py
 ##########
 @@ -29,8 +29,7 @@ def load_mnist(training_num=50000):
             'https://github.com/sxjscience/mxnet/raw/master/example/bayesian-methods/mnist.npz'
         )
         print('Downloading data from %s to %s' % (origin, data_path))
-        context = ssl._create_unverified_context()
-        urllib.request.urlretrieve(origin, data_path, context=context)
+        urllib.request.urlretrieve(origin, data_path)
 
 Review comment:
   But it seems that there's no `context` arg for `urllib.request.urlretrieve`. I change to a new approach.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services