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
changes/77/30177/2
Oliver Smith 3 weeks ago
parent bee7ce3f6f
commit 69bb2fab2b
  1. 4
      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]

Loading…
Cancel
Save