net/data/ocsp_unittest/annotate_test_data.py
def Transform(file_data):
  """Returns a transformed (formatted) version of file_data"""

  result = ''

  for block in GetPemBlocks(file_data):
    if len(result) != 0:
      result += '\n'

    # If there was a user comment (non-script-generated comment) associated
    # with the block, output it immediately before the block.
    user_comment = GetUserComment(block.comment)
    if user_comment:
      result += user_comment

    generated_comment = GenerateCommentForBlock(block.name, block.data)
    result += generated_comment + '\n'


    result += MakePemBlockString(block.name, block.data)

  return result
Returns a transformed (formatted) version of file_data
Returns a transformed (formatted) version of file_data
Returns a transformed ( formatted ) version of file_data
def Transform(file_data):
  result = ''
  for block in GetPemBlocks(file_data):
    if len(result) != 0:
      result += '\n'
    user_comment = GetUserComment(block.comment)
    if user_comment:
      result += user_comment
    generated_comment = GenerateCommentForBlock(block.name, block.data)
    result += generated_comment + '\n'
    result += MakePemBlockString(block.name, block.data)
  return result
def Transform ( file_data ) : result = '' for block in GetPemBlocks ( file_data ) : if len ( result ) != 0 : result += '\n' user_comment = GetUserComment ( block . comment ) if user_comment : result += user_comment generated_comment = GenerateCommentForBlock ( block . name , block . data ) result += generated_comment + '\n' result += MakePemBlockString ( block . name , block . data ) return result
Returns a transformed (formatted) version of file_data
Returns a transformed ( formatted ) version of file_data
"""Returns a transformed (formatted) version of file_data""" # If there was a user comment (non-script-generated comment) associated # with the block, output it immediately before the block.
file_data