aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOliver Smith <osmith@sysmocom.de>2022-11-16 10:22:27 +0100
committerOliver Smith <osmith@sysmocom.de>2022-11-16 10:27:52 +0100
commit69bb2fab2b41ead4a44d1b16c4f8f2482d1bddd5 (patch)
tree2cff969e8c20c14e69487a9fa75f36c8401153ec
parentbee7ce3f6f500672f616a10cecbdfc421527a011 (diff)
asn1tostruct: don't use f-strings
Make the script work with python < 3.6 again by not using f-strings. Fix for: SyntaxError: invalid syntax File "../../git/asn1/utils/asn1tostruct.py", line 94 f" IE {ie}. Found another entry in ies {ie_other}" \ ^ Fixes: 1d19c8e2 ("asn1tostruct: fix defines getting redefined") Change-Id: I3a19b8a1147532b41d3ed7b802de595302ff8f44
-rwxr-xr-xasn1/utils/asn1tostruct.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/asn1/utils/asn1tostruct.py b/asn1/utils/asn1tostruct.py
index d71d87d..9b1c1a1 100755
--- a/asn1/utils/asn1tostruct.py
+++ b/asn1/utils/asn1tostruct.py
@@ -91,8 +91,8 @@ def getUniqueIENameForDefine(ies, ie):
if ie_other[2] == ie[2]:
unique = False
assert ie[0] != ie_other[0], "failed to find a unique name for" \
- f" IE {ie}. Found another entry in ies {ie_other}" \
- " that has the same ie[0] value."
+ " IE {}. Found another entry in ies {}" \
+ " that has the same ie[0] value.".format(ie, ie_other)
if unique:
ret = ie[2]