laforge has submitted this change. (
https://gerrit.osmocom.org/c/pysim/+/36838?usp=email
)
(
1 is the latest approved patch-set.
No files were changed between the latest approved patch-set and the submitted one.
)Change subject: sysmocom_sjs2: Make sure 'Const' is imported
......................................................................
sysmocom_sjs2: Make sure 'Const' is imported
File "/crypt/space/home/laforge/projects/git/pysim/pySim/sysmocom_sja2.py",
line 180, in __init__
self._construct = Struct(Const(b'\x82'), 'time_unit'/self.TimeUnit,
'value'/Int8ub,
^^^^^
NameError: name 'Const' is not defined
Change-Id: If34a48e349680ef84e68a4a1a19dde536ecda0e6
---
M pySim/sysmocom_sja2.py
1 file changed, 15 insertions(+), 1 deletion(-)
Approvals:
Jenkins Builder: Verified
fixeria: Looks good to me, approved
diff --git a/pySim/sysmocom_sja2.py b/pySim/sysmocom_sja2.py
index dd876aa..97de5a5 100644
--- a/pySim/sysmocom_sja2.py
+++ b/pySim/sysmocom_sja2.py
@@ -19,7 +19,7 @@
from struct import unpack
from construct import FlagsEnum, Byte, Struct, Int8ub, Bytes, Mapping, Enum, Padding,
BitsInteger
-from construct import Bit, this, Int32ub, Int16ub, Nibble, BytesInteger, GreedyRange
+from construct import Bit, this, Int32ub, Int16ub, Nibble, BytesInteger, GreedyRange,
Const
from construct import Optional as COptional
from pySim.utils import *
--
To view, visit
https://gerrit.osmocom.org/c/pysim/+/36838?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings
Gerrit-Project: pysim
Gerrit-Branch: master
Gerrit-Change-Id: If34a48e349680ef84e68a4a1a19dde536ecda0e6
Gerrit-Change-Number: 36838
Gerrit-PatchSet: 2
Gerrit-Owner: laforge <laforge(a)osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy(a)sysmocom.de>
Gerrit-Reviewer: laforge <laforge(a)osmocom.org>
Gerrit-MessageType: merged