def __init__(self, fmt):
assert isinstance(fmt, six.text_type), '<STR_LIT>'<EOL>self.format = fmt<EOL>
fmt must be composed of format codes that the C standard (1989)
        supports, most notably in its strftime() function.