New GitHub issue #94717 from Nougat-Waffle:<br>

<hr>

<pre>
A simple rewriting of some of the code to be more modern. Replacing %-formatting with f-strings. In addition change `struct.Struct('!%dI' % (len(b) // 4)).unpack(b)` to `struct.unpack(f'!{len(b) // 4}I', b)` as there is no need to use the `Struct` class.
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/94717">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>