From b3f5f71e704a3ecdd26c4e323ba994c3d14439da Mon Sep 17 00:00:00 2001 From: YCAyca Date: Thu, 9 May 2019 13:54:32 +0300 Subject: [PATCH] Update mnist_loader.py I am working on your online book and projects using Python 3.5. Since I used a different and newer python version, I came across several problems and solved them by making some changes in network.py and mnist_loader files. Now the code is compatible with Python 3.5 I added just "import _pickle as cPickle" line because in 3.5 cPickle isn't defined and it should be used in standard library version. --- src/mnist_loader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mnist_loader.py b/src/mnist_loader.py index d17498c89..8ba1e8315 100644 --- a/src/mnist_loader.py +++ b/src/mnist_loader.py @@ -10,7 +10,7 @@ #### Libraries # Standard library -import cPickle +import _pickle as cPickle import gzip # Third-party libraries