You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by jd...@apache.org on 2023/04/10 21:45:12 UTC
[qpid-python] 05/06: QPID-8631: fallback import for `cPickle` or `pickle`
This is an automated email from the ASF dual-hosted git repository.
jdanek pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/qpid-python.git
commit 84abc181d2e44760c15178a584aac924b29f0bbc
Author: Jiri Daněk <jd...@redhat.com>
AuthorDate: Sat Apr 8 17:49:28 2023 +0200
QPID-8631: fallback import for `cPickle` or `pickle`
---
qpid/ops.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/qpid/ops.py b/qpid/ops.py
index acaadb1..8f29945 100644
--- a/qpid/ops.py
+++ b/qpid/ops.py
@@ -17,7 +17,11 @@
# under the License.
#
from __future__ import print_function
-import os, mllib, cPickle as pickle, sys
+import os, mllib, sys
+try:
+ import cPickle as pickle
+except ImportError:
+ import pickle
from util import fill
class Primitive(object):
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org