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
This commit is contained in:
Oliver Smith 2022-11-16 10:22:27 +01:00
parent bee7ce3f6f
commit 69bb2fab2b
1 changed files with 2 additions and 2 deletions

View File

@ -91,8 +91,8 @@ def getUniqueIENameForDefine(ies, ie):
if ie_other[2] == ie[2]: if ie_other[2] == ie[2]:
unique = False unique = False
assert ie[0] != ie_other[0], "failed to find a unique name for" \ assert ie[0] != ie_other[0], "failed to find a unique name for" \
f" IE {ie}. Found another entry in ies {ie_other}" \ " IE {}. Found another entry in ies {}" \
" that has the same ie[0] value." " that has the same ie[0] value.".format(ie, ie_other)
if unique: if unique:
ret = ie[2] ret = ie[2]