forked from pool/python-construct
- Reintroduce split_debug.patch for rpmlint[mini] mode
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-construct?expand=0&rev=26
This commit is contained in:
committed by
Git OBS Bridge
parent
c82d65db7a
commit
e524408dda
39
split_debug.patch
Normal file
39
split_debug.patch
Normal file
@@ -0,0 +1,39 @@
|
||||
Index: construct-2.9.45/construct/__init__.py
|
||||
===================================================================
|
||||
--- construct-2.9.45.orig/construct/__init__.py
|
||||
+++ construct-2.9.45/construct/__init__.py
|
||||
@@ -21,7 +21,6 @@ Hands-on example:
|
||||
|
||||
from construct.core import *
|
||||
from construct.expr import *
|
||||
-from construct.debug import *
|
||||
from construct.version import *
|
||||
from construct import lib
|
||||
|
||||
@@ -69,7 +68,6 @@ __all__ = [
|
||||
'ConstructError',
|
||||
'Container',
|
||||
'CString',
|
||||
- 'Debugger',
|
||||
'Default',
|
||||
'Double',
|
||||
'Embedded',
|
||||
@@ -144,7 +142,6 @@ __all__ = [
|
||||
'possiblestringencodings',
|
||||
'Prefixed',
|
||||
'PrefixedArray',
|
||||
- 'Probe',
|
||||
'ProcessRotateLeft',
|
||||
'ProcessXor',
|
||||
'RangeError',
|
||||
@@ -207,3 +204,10 @@ __all__ = [
|
||||
]
|
||||
__all__ += ["Int%s%s%s" % (n,us,bln) for n in (8,16,24,32,64) for us in "us" for bln in "bln"]
|
||||
__all__ += ["Float%s%s" % (n,bln) for n in (32,64) for bln in "bln"]
|
||||
+
|
||||
+try:
|
||||
+ from construct.debug import *
|
||||
+ __all__ += ['Debugger', 'Probe']
|
||||
+except ImportError:
|
||||
+ pass
|
||||
+
|
||||
Reference in New Issue
Block a user