Skip to content

Commit ad6a25f

Browse files
Falesybrenstuvel
authored andcommitted
Fix FTBFS import error
1 parent f0cbd38 commit ad6a25f

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

rsa/_version133.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@
3434
# NOTE: Python's modulo can return negative numbers. We compensate for
3535
# this behaviour using the abs() function
3636

37-
from cPickle import dumps, loads
37+
try:
38+
import cPickle as pickle
39+
except ImportError:
40+
import pickle
41+
from pickle import dumps, loads
3842
import base64
3943
import math
4044
import os

0 commit comments

Comments
 (0)