polite/configuration.py
def write(self, obj_to_serialise, default_flow_style=False):
        
        '''Write the YAML configuration file.'''
        
        # Write the file
        yaml_config_path = self.get_config_path()
        
        # Ensure target directory exists
        self.target_dir.makedir()
        
        with open(yaml_config_path, 'w') as yaml_file:
            
            yaml.dump(obj_to_serialise,
                      yaml_file,
                      default_flow_style=default_flow_style,
                      Dumper=Dumper)
        
        return
Write the YAML configuration file.
Write the YAML configuration file.
Write the YAML configuration file .
def write(self, obj_to_serialise, default_flow_style=False):
        yaml_config_path = self.get_config_path()
        self.target_dir.makedir()
        with open(yaml_config_path, 'w') as yaml_file:
            yaml.dump(obj_to_serialise,
                      yaml_file,
                      default_flow_style=default_flow_style,
                      Dumper=Dumper)
        return
def write ( self , obj_to_serialise , default_flow_style = False ) : yaml_config_path = self . get_config_path ( ) self . target_dir . makedir ( ) with open ( yaml_config_path , 'w' ) as yaml_file : yaml . dump ( obj_to_serialise , yaml_file , default_flow_style = default_flow_style , Dumper = Dumper ) return
Write the YAML configuration file.
Write the YAML configuration file .
'''Write the YAML configuration file.''' # Write the file # Ensure target directory exists
self
obj_to_serialise
default_flow_style