Skip to content

Commit

Permalink
Fix python 3.4 _Pickler error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thrandis committed Feb 12, 2016
1 parent 2633f18 commit ced8b8b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions blocks/serialization.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,27 +105,28 @@
TODO: Add information about :func:`add_to_dump`.
"""
import numpy
import os
import pickle
import shutil
import tempfile
import six
import tarfile
import pickle
import tempfile
import warnings

from contextlib import closing
from pickle import HIGHEST_PROTOCOL
try:
from pickle import DEFAULT_PROTOCOL
from pickle import _Pickler
except ImportError:
DEFAULT_PROTOCOL = HIGHEST_PROTOCOL
from pickle import Pickler as _Pickler
from six.moves import cPickle
try:
from theano.sandbox.cuda import cuda_ndarray
except ImportError:
cuda_ndarray = None
import numpy
import six

from six.moves import cPickle
from pickle import Pickler as _Pickler

from blocks.config import config
from blocks.filter import get_brick
Expand Down

0 comments on commit ced8b8b

Please sign in to comment.