mirror of
https://github.com/SheffieldML/GPy.git
synced 2026-05-24 14:15:14 +02:00
Update __init__.py
This commit is contained in:
parent
0d74681ee2
commit
c7c18f0437
1 changed files with 6 additions and 5 deletions
|
|
@ -55,7 +55,8 @@ def load(file_or_path):
|
||||||
str = str
|
str = str
|
||||||
unicode = unicode
|
unicode = unicode
|
||||||
bytes = str
|
bytes = str
|
||||||
basestring = basestring try:
|
basestring = basestring
|
||||||
|
try:
|
||||||
import cPickle as pickle
|
import cPickle as pickle
|
||||||
if isinstance(file_or_path, basestring):
|
if isinstance(file_or_path, basestring):
|
||||||
with open(file_or_path, 'rb') as f:
|
with open(file_or_path, 'rb') as f:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue