def calculate_checksum(source, context):
 md5 = hashlib.md5()
 if (source is not None):
  md5.update(source.encode(u'utf-8'))
 md5.update(context.encode(u'utf-8'))
 return md5.hexdigest()

def calculate_checksum ( source , context ) : md5 = hashlib . md5 ( ) if ( source is not None ) : md5 . update ( source . encode ( u'utf-8' ) ) md5 . update ( context . encode ( u'utf-8' ) ) return md5 . hexdigest ( )
calculates checksum identifying translation .