tools/cygprofile/orderfile_generator_backend.py
def _GetHashFilePathAndContents(self, filename):
    """Gets the name and content of the hash file created from uploading the
    given file.

    Args:
      filename: (str) The file that was uploaded to cloud storage.

    Returns:
      A tuple of the hash file name, relative to the reository root, and the
      content, which should be the sha1 hash of the file
      ('base_file.sha1', hash)
    """
    abs_hash_filename = filename + '.sha1'
    rel_hash_filename = os.path.relpath(
        abs_hash_filename, self._repository_root)
    with open(abs_hash_filename, 'r') as f:
      return (rel_hash_filename, f.read())
Gets the name and content of the hash file created from uploading the
    given file.

    Args:
      filename: (str) The file that was uploaded to cloud storage.

    Returns:
      A tuple of the hash file name, relative to the reository root, and the
      content, which should be the sha1 hash of the file
      ('base_file.sha1', hash)
    
Gets the name and content of the hash file created from uploading the
given file.
Gets the name and content of the hash file created from uploading the given file .
def _GetHashFilePathAndContents(self, filename):
    abs_hash_filename = filename + '.sha1'
    rel_hash_filename = os.path.relpath(
        abs_hash_filename, self._repository_root)
    with open(abs_hash_filename, 'r') as f:
      return (rel_hash_filename, f.read())
def _GetHashFilePathAndContents ( self , filename ) : abs_hash_filename = filename + '.sha1' rel_hash_filename = os . path . relpath ( abs_hash_filename , self . _repository_root ) with open ( abs_hash_filename , 'r' ) as f : return ( rel_hash_filename , f . read ( ) )
Gets the name and content of the hash file created from uploading the
given file.
Gets the name and content of the hash file created from uploading the given file .
"""Gets the name and content of the hash file created from uploading the
    given file.

    Args:
      filename: (str) The file that was uploaded to cloud storage.

    Returns:
      A tuple of the hash file name, relative to the reository root, and the
      content, which should be the sha1 hash of the file
      ('base_file.sha1', hash)
    """
A tuple of the hash file name, relative to the reository root, and the
content, which should be the sha1 hash of the file
('base_file.sha1', hash)
A tuple of the hash file name relative to the reository root and the content which should be the sha1 hash of the file ( ' base_file . sha1 ' hash )
self
filename
(str) The file that was uploaded to cloud storage.
( str ) The file that was uploaded to cloud storage .