tools/cygprofile/orderfile_generator_backend.py
def _RemoveBlanks(src_file, dest_file):
    """A utility to remove blank lines from a file.

    Args:
      src_file: The name of the file to remove the blanks from.
      dest_file: The name of the file to write the output without blanks.
    """
    assert src_file != dest_file, 'Source and destination need to be distinct'

    try:
      src = open(src_file, 'r')
      dest = open(dest_file, 'w')
      for line in src:
        if line and not line.isspace():
          dest.write(line)
    finally:
      src.close()
      dest.close()
A utility to remove blank lines from a file.

    Args:
      src_file: The name of the file to remove the blanks from.
      dest_file: The name of the file to write the output without blanks.
    
A utility to remove blank lines from a file.
A utility to remove blank lines from a file .
def _RemoveBlanks(src_file, dest_file):
    assert src_file != dest_file, 'Source and destination need to be distinct'
    try:
      src = open(src_file, 'r')
      dest = open(dest_file, 'w')
      for line in src:
        if line and not line.isspace():
          dest.write(line)
    finally:
      src.close()
      dest.close()
def _RemoveBlanks ( src_file , dest_file ) : assert src_file != dest_file , 'Source and destination need to be distinct' try : src = open ( src_file , 'r' ) dest = open ( dest_file , 'w' ) for line in src : if line and not line . isspace ( ) : dest . write ( line ) finally : src . close ( ) dest . close ( )
A utility to remove blank lines from a file.
A utility to remove blank lines from a file .
"""A utility to remove blank lines from a file.

    Args:
      src_file: The name of the file to remove the blanks from.
      dest_file: The name of the file to write the output without blanks.
    """
src_file
The name of the file to remove the blanks from.
The name of the file to remove the blanks from .
dest_file
The name of the file to write the output without blanks.
The name of the file to write the output without blanks .