'Convert to formal string, for repr().'

def __repr__(self):

    if (self._microsecond != 0):
        s = (',    %d,    %d' % (self._second, self._microsecond))
    elif (self._second != 0):
        s = (',    %d' % self._second)
    else:
        s = ''
    s = ('%s(%d,    %d%s)' % (('datetime.' + self.__class__.__name__), self._hour, self._minute, s))
    if (self._tzinfo is not None):
        assert (s[(-1):] == ')')
        s = ((s[:(-1)] + (',    tzinfo=%r' % self._tzinfo)) + ')')
    return s
