Skip to content

Commit 85f4acd

Browse files
msimacektimfel
authored andcommitted
Update cloudpickle patch
1 parent 15a4f96 commit 85f4acd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

graalpython/lib-graalpython/patches/cloudpickle/whl/cloudpickle-2.2.1.patch

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ index 317be69..4e409e4 100644
1212
op = instr.opcode
1313
if op in GLOBAL_OPS:
1414
diff --git a/cloudpickle/cloudpickle_fast.py b/cloudpickle/cloudpickle_fast.py
15-
index 63aaffa..65ff18c 100644
15+
index 63aaffa..873f462 100644
1616
--- a/cloudpickle/cloudpickle_fast.py
1717
+++ b/cloudpickle/cloudpickle_fast.py
1818
@@ -21,6 +21,7 @@ import struct
@@ -28,7 +28,7 @@ index 63aaffa..65ff18c 100644
2828
assert hasattr(self, 'proto')
2929

3030
- if pickle.HIGHEST_PROTOCOL >= 5 and not PYPY:
31-
+ if pickle.HIGHEST_PROTOCOL >= 5 and platform.python_implementation() == 'CPython':
31+
+ if pickle.HIGHEST_PROTOCOL >= 5 and not hasattr(Pickler, 'dispatch'):
3232
# Pickler is the C implementation of the CPython pickler and therefore
3333
# we rely on reduce_override method to customize the pickler behavior.
3434

0 commit comments

Comments
 (0)