Skip to content

Commit cddde22

Browse files
committed
Merge pull request #3336 from jreback/fixes
TST: properly raise the quoted exception when trying to unpickle on py2
2 parents f23a9eb + c42fd34 commit cddde22

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pandas/core/common.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1584,6 +1584,8 @@ def load(path):
15841584
with open(path,'rb') as fh:
15851585
return pickle.load(fh)
15861586
except:
1587+
if not py3compat.PY3:
1588+
raise
15871589
with open(path,'rb') as fh:
15881590
return pickle.load(fh, encoding='latin1')
15891591

0 commit comments

Comments
 (0)