diff options
Diffstat (limited to 'Lib/ctypes/_endian.py')
-rw-r--r-- | Lib/ctypes/_endian.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/ctypes/_endian.py b/Lib/ctypes/_endian.py index dae65fc215..37444bd6a7 100644 --- a/Lib/ctypes/_endian.py +++ b/Lib/ctypes/_endian.py @@ -45,6 +45,7 @@ if sys.byteorder == "little": class BigEndianStructure(Structure, metaclass=_swapped_meta): """Structure with big endian byte order""" + __slots__ = () _swappedbytes_ = None elif sys.byteorder == "big": @@ -53,6 +54,7 @@ elif sys.byteorder == "big": BigEndianStructure = Structure class LittleEndianStructure(Structure, metaclass=_swapped_meta): """Structure with little endian byte order""" + __slots__ = () _swappedbytes_ = None else: |