From 69bb2fab2b41ead4a44d1b16c4f8f2482d1bddd5 Mon Sep 17 00:00:00 2001 From: Oliver Smith Date: Wed, 16 Nov 2022 10:22:27 +0100 Subject: [PATCH] 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 --- asn1/utils/asn1tostruct.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asn1/utils/asn1tostruct.py b/asn1/utils/asn1tostruct.py index d71d87d3..9b1c1a11 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]