commit:     e6294860d2132a3e5a98c9ecc062bd4da8ec1d8d
Author:     Brian Harring <ferringb <AT> gmail <DOT> com>
AuthorDate: Sun Nov 30 21:28:59 2025 +0000
Commit:     Brian Harring <ferringb <AT> gmail <DOT> com>
CommitDate: Sun Nov 30 21:28:59 2025 +0000
URL:        
https://gitweb.gentoo.org/proj/pkgcore/snakeoil.git/commit/?id=e6294860

chore: deprecate .struct_compat .  pkgcore xpak is the only user

Signed-off-by: Brian Harring <ferringb <AT> gmail.com>

 src/snakeoil/struct_compat.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/snakeoil/struct_compat.py b/src/snakeoil/struct_compat.py
index 66c1290..1f0c4e0 100644
--- a/src/snakeoil/struct_compat.py
+++ b/src/snakeoil/struct_compat.py
@@ -5,14 +5,14 @@ In usage, instead of importing struct you should just import 
this module instead
 It's designed to be a drop in replacement.
 """
 
-__all__ = ("Struct", "error", "pack", "pack", "calcsize")
+__all__ = ("Struct", "error", "unpack", "pack")
 
 # since we're trying to be usable in struct's place, we do a start import;
 # sucks, but is what it is.
 # pylint: disable=wildcard-import,unused-wildcard-import
-from struct import *
 
-base_struct = Struct
+from struct import Struct as base_struct
+from struct import error, pack, unpack
 
 
 # pylint: disable=function-redefined

Reply via email to