#NEWLINE# def to_map( self , no_privs ) : #NEWLINE# #INDENT# 'Convert a column to a YAML-suitable format\n\n        :param no_privs: exclude privilege information\n        :return: dictionary\n        ' #NEWLINE# if hasattr ( self , 'dropped' ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# dct = self . _base_map ( False , no_privs ) #NEWLINE# del dct [ 'number' ] , dct [ 'name' ] #NEWLINE# if ( '_table' in dct ) : #NEWLINE# #INDENT# del dct [ '_table' ] #NEWLINE# #UNINDENT# if ( '_type' in dct ) : #NEWLINE# #INDENT# del dct [ '_type' ] #NEWLINE# #UNINDENT# if ( ( 'collation' in dct ) and ( dct [ 'collation' ] == 'default' ) ) : #NEWLINE# #INDENT# del dct [ 'collation' ] #NEWLINE# #UNINDENT# if hasattr ( self , 'inherited' ) : #NEWLINE# #INDENT# dct [ 'inherited' ] = ( self . inherited != 0 ) #NEWLINE# #UNINDENT# if ( hasattr ( self , 'statistics' ) and ( self . statistics == ( - 1 ) ) ) : #NEWLINE# #INDENT# del dct [ 'statistics' ] #NEWLINE# #UNINDENT# return { #NEWLINE# #INDENT# self . name : dct , #NEWLINE# #UNINDENT# }