Two changes now that Python 2 is a thing of the past:
Remove the u'...' prefix on strings. In Python 3 this prefix does nothing.
Replace all calls to .format(...) with f'...' strings. This is new in Python 3.6 and is IMO more readable. It also more closely matches the new Rust format!("{variable}") syntax.
Checklist
General Contributing
[x] I have read the Code of Conduct and signed the CLA.
[x] I have added an entry to the RELEASE_NOTES.md file, or believe it's not necessary for this change.
Validation
The generated code did not change at all, and all tests still pass. I did this mostly manually, but if I made any typos it must not be in live code. :)
My PyCharm also has fewer yellow squiggly lines in it now.
Two changes now that Python 2 is a thing of the past:
u'...'
prefix on strings. In Python 3 this prefix does nothing..format(...)
withf'...'
strings. This is new in Python 3.6 and is IMO more readable. It also more closely matches the new Rustformat!("{variable}")
syntax.Checklist
General Contributing
RELEASE_NOTES.md
file, or believe it's not necessary for this change.Validation
The generated code did not change at all, and all tests still pass. I did this mostly manually, but if I made any typos it must not be in live code. :)
My PyCharm also has fewer yellow squiggly lines in it now.