#NEWLINE# def _parse_fk( self , fks , fkeys , numerical_id , rtbl , lcol , rcol ) : #NEWLINE# #INDENT# if ( rcol is None ) : #NEWLINE# #INDENT# rcol = lcol #NEWLINE# #UNINDENT# if self . _broken_fk_pragma_quotes : #NEWLINE# #INDENT# rtbl = re . sub ( '^[\\"\\[`\\\']|[\\"\\]`\\\']$' , '' , rtbl ) #NEWLINE# #UNINDENT# try : #NEWLINE# #INDENT# fk = fks [ rtbl ] #NEWLINE# #UNINDENT# except KeyError : #NEWLINE# #INDENT# fk = { #NEWLINE# #INDENT# 'name' : None , #NEWLINE# 'constrained_columns' : [ ] , #NEWLINE# 'referred_schema' : None , #NEWLINE# 'referred_table' : rtbl , #NEWLINE# 'referred_columns' : [ ] , #NEWLINE# #UNINDENT# } #NEWLINE# fkeys . append ( fk ) #NEWLINE# fks [ numerical_id ] = fk #NEWLINE# #UNINDENT# if ( lcol not in fk [ 'constrained_columns' ] ) : #NEWLINE# #INDENT# fk [ 'constrained_columns' ] . append ( lcol ) #NEWLINE# #UNINDENT# if ( rcol not in fk [ 'referred_columns' ] ) : #NEWLINE# #INDENT# fk [ 'referred_columns' ] . append ( rcol ) #NEWLINE# #UNINDENT# return fk