slimta.util.bytesformat¶
Provides a class that is capable of basic bytestring templating, similar to
the str.format()
method. This is needed in Python 3 before 3.5+, but
should work in all supported versions.
This class does the heavy lifting (a re.finditer()
loop) during
construction, so it is optimal to instantiate it once and then re-use
format()
.