15
0
forked from pool/python-dill
Files
python-dill/07e24913.patch

25 lines
970 B
Diff
Raw Normal View History

From 07e24913e88dfe26448226f9cfd1ee6cf5c2a760 Mon Sep 17 00:00:00 2001
From: mmckerns <mmckerns@caltech.edu>
Date: Fri, 26 Feb 2021 12:01:52 -0500
Subject: [PATCH] comment out BigEndianStructureType
---
dill/_objects.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dill/_objects.py b/dill/_objects.py
index 3adba2b..5c54aba 100644
--- a/dill/_objects.py
+++ b/dill/_objects.py
@@ -216,8 +216,8 @@ class _Struct(ctypes.Structure):
a['CSizeTType'] = ctypes.c_size_t()
a['CLibraryLoaderType'] = ctypes.cdll
a['StructureType'] = _Struct
- if not IS_PYPY:
- a['BigEndianStructureType'] = ctypes.BigEndianStructure()
+ # if not IS_PYPY:
+ # a['BigEndianStructureType'] = ctypes.BigEndianStructure()
#NOTE: also LittleEndianStructureType and UnionType... abstract classes
#NOTE: remember for ctypesobj.contents creates a new python object
#NOTE: ctypes.c_int._objects is memberdescriptor for object's __dict__