def format_reflog_line(old_sha, new_sha, committer, timestamp, timezone, message):
 if (old_sha is None):
  old_sha = ZERO_SHA
 return ((((((((((old_sha + ' ') + new_sha) + ' ') + committer) + ' ') + str(timestamp).encode('ascii')) + ' ') + format_timezone(timezone)) + ' DCTB ') + message)

def format_reflog_line ( old_sha , new_sha , committer , timestamp , timezone , message ) : if ( old_sha is None ) : old_sha = ZERO_SHA return ( ( ( ( ( ( ( ( ( ( old_sha + ' ' ) + new_sha ) + ' ' ) + committer ) + ' ' ) + str ( timestamp ) . encode ( 'ascii' ) ) + ' ' ) + format_timezone ( timezone ) ) + ' DCTB ' ) + message )
generate a single reflog line .