SE/relacion.py
def save(self, filename):
        '''
        Saves the relation in a file. Will save using the csv
        format as defined in RFC4180.
        '''

        with open(filename, 'w') as fp:
            writer = csv.writer(fp)  # Creating csv writer

            # It wants an iterable containing iterables
            head = (self.header,)
            writer.writerows(head)

            # Writing content, already in the correct format
            writer.writerows(self.content)

        Saves the relation in a file. Will save using the csv
        format as defined in RFC4180.
        
Saves the relation in a file. Will save using the csv
format as defined in RFC4180.
Saves the relation in a file . Will save using the csv format as defined in RFC4180 .
def save(self, filename):
        with open(filename, 'w') as fp:
            writer = csv.writer(fp)  
            head = (self.header,)
            writer.writerows(head)
            writer.writerows(self.content)
def save ( self , filename ) : with open ( filename , 'w' ) as fp : writer = csv . writer ( fp ) head = ( self . header , ) writer . writerows ( head ) writer . writerows ( self . content )
Saves the relation in a file.
Saves the relation in a file .
'''
        Saves the relation in a file. Will save using the csv
        format as defined in RFC4180.
        ''' # Creating csv writer # It wants an iterable containing iterables # Writing content, already in the correct format
self
filename