human
Solve the following python programming problem given the following code:
def _extend_string(self, type_, defaults, spec) : 
    'Extend a string-type declaration with standard SQL
        COLLATE annotations and Drizzle specific extensions.

        ' 
    def attr(name) : 
        return getattr (type_, name, defaults.get (name)) 
if attr ('collation') : 
        collation = ('COLLATE %s' % c.collation) 
else : 
        if attr ('binary') : 
            collation = 'BINARY' 
else : 
            collation = None 
return ' '.join ([c for c in (spec, collation) if (c is not None)]) 

    
    

    Fix the buggy line: collation = ('COLLATE %s' % c.collation)
assistant
#Here is Python program to fix the buggy line: collation = ('COLLATE %s' % c.

collation = ('COLLATE %s' % type_.collation)