@@ -501,14 +501,14 @@ def _deserialize(self, stream):
501501
502502try :
503503self .author ,self .authored_date ,self .author_tz_offset = \
504- parse_actor_and_date (author_line .decode (self .encoding ,errors = 'replace' ))
504+ parse_actor_and_date (author_line .decode (self .encoding ,'replace' ))
505505except UnicodeDecodeError :
506506log .error ("Failed to decode author line '%s' using encoding %s" ,author_line ,self .encoding ,
507507exc_info = True )
508508
509509try :
510510self .committer ,self .committed_date ,self .committer_tz_offset = \
511- parse_actor_and_date (committer_line .decode (self .encoding ,errors = 'replace' ))
511+ parse_actor_and_date (committer_line .decode (self .encoding ,'replace' ))
512512except UnicodeDecodeError :
513513log .error ("Failed to decode committer line '%s' using encoding %s" ,committer_line ,self .encoding ,
514514exc_info = True )
@@ -518,7 +518,7 @@ def _deserialize(self, stream):
518518# The end of our message stream is marked with a newline that we strip
519519self .message = stream .read ()
520520try :
521- self .message = self .message .decode (self .encoding ,errors = 'replace' )
521+ self .message = self .message .decode (self .encoding ,'replace' )
522522except UnicodeDecodeError :
523523log .error ("Failed to decode message '%s' using encoding %s" ,self .message ,self .encoding ,exc_info = True )
524524# END exception handling