def mysql_timestamp_converter(s):
<EOL>if s[<NUM_LIT:4>] == '<STR_LIT:->': return DateTime_or_None(s)<EOL>s = s + "<STR_LIT:0>"*(<NUM_LIT>-len(s)) <EOL>parts = map(int, filter(None, (s[:<NUM_LIT:4>],s[<NUM_LIT:4>:<NUM_LIT:6>],s[<NUM_LIT:6>:<NUM_LIT:8>],<EOL>s[<NUM_LIT:8>:<NUM_LIT:10>],s[<NUM_LIT:10>:<NUM_LIT:12>],s[<NUM_LIT:12>:<NUM_LIT>])))<EOL>try:<EOL><INDENT>return Timestamp(*parts)<EOL><DEDENT>except (SystemExit, KeyboardInterrupt):<EOL><INDENT>raise<EOL><DEDENT>except:<EOL><INDENT>return None<EOL><DEDENT>
Convert a MySQL TIMESTAMP to a Timestamp object.