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 <jda...@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-unsubscr...@qpid.apache.org For additional commands, e-mail: commits-h...@qpid.apache.org