def parse_reflog_line(line):
 (begin, message) = line.split(' DCTB ', 1)
 (old_sha, new_sha, rest) = begin.split(' ', 2)
 (committer, timestamp_str, timezone_str) = rest.rsplit(' ', 2)
 return Entry(old_sha, new_sha, committer, int(timestamp_str), parse_timezone(timezone_str)[0], message)

def parse_reflog_line ( line ) : ( begin , message ) = line . split ( ' DCTB ' , 1 ) ( old_sha , new_sha , rest ) = begin . split ( ' ' , 2 ) ( committer , timestamp_str , timezone_str ) = rest . rsplit ( ' ' , 2 ) return Entry ( old_sha , new_sha , committer , int ( timestamp_str ) , parse_timezone ( timezone_str ) [ 0 ] , message )
parse a reflog line .