From 41f6c5a6962d64637d0bde210fed4e902b981ffa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valent=C3=ADn=20KIVACHUK?= Date: Wed, 9 Oct 2019 13:39:27 +0200 Subject: [PATCH] Fix python3 support for theano_rhn --- theano_rhn.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/theano_rhn.py b/theano_rhn.py index fcdb29e..b23a3ee 100644 --- a/theano_rhn.py +++ b/theano_rhn.py @@ -1,7 +1,11 @@ from __future__ import absolute_import, division, print_function import numbers -import cPickle + +try: + import cPickle +except ImportError: + import _pickle import numpy as np