def __repr__(self):
L = [self._year, self._month, self._day,  <EOL>self._hour, self._minute, self._second, self._microsecond]<EOL>if L[-<NUM_LIT:1>] == <NUM_LIT:0>:<EOL><INDENT>del L[-<NUM_LIT:1>]<EOL><DEDENT>if L[-<NUM_LIT:1>] == <NUM_LIT:0>:<EOL><INDENT>del L[-<NUM_LIT:1>]<EOL><DEDENT>s = "<STR_LIT:U+002CU+0020>".join(map(str, L))<EOL>module = "<STR_LIT>" if self.__class__ is datetime else "<STR_LIT>"<EOL>s = "<STR_LIT>" % (module + self.__class__.__name__, s)<EOL>if self._tzinfo is not None:<EOL><INDENT>assert s[-<NUM_LIT:1>:] == "<STR_LIT:)>"<EOL>s = s[:-<NUM_LIT:1>] + "<STR_LIT>" % self._tzinfo + "<STR_LIT:)>"<EOL><DEDENT>return s<EOL>
Convert to formal string, for repr().