tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands_test.py
def _CreateXmlFile(self, filename):
    """Helper for creating empty XML file.

    Args:
      filename: The fully-qualified file name to create.
    """
    with open(filename, 'w') as f:
      f.write('<?xml version="1.0"?>')
      f.write('<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>')
      f.write('<configuration/>')
Helper for creating empty XML file.

    Args:
      filename: The fully-qualified file name to create.
    
Helper for creating empty XML file.
Helper for creating empty XML file .
def _CreateXmlFile(self, filename):
    with open(filename, 'w') as f:
      f.write('<?xml version="1.0"?>')
      f.write('<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>')
      f.write('<configuration/>')
def _CreateXmlFile ( self , filename ) : with open ( filename , 'w' ) as f : f . write ( '<?xml version="1.0"?>' ) f . write ( '<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>' ) f . write ( '<configuration/>' )
Helper for creating empty XML file.
Helper for creating empty XML file .
"""Helper for creating empty XML file.

    Args:
      filename: The fully-qualified file name to create.
    """
self
filename
The fully-qualified file name to create.
The fully - qualified file name to create .