#NEWLINE# def _render_primary_key( constraint , autogen_context ) : #NEWLINE# #INDENT# rendered = _user_defined_render ( 'primary_key' , constraint , autogen_context ) #NEWLINE# if ( rendered is not False ) : #NEWLINE# #INDENT# return rendered #NEWLINE# #UNINDENT# if ( not constraint . columns ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# opts = [ ] #NEWLINE# if constraint . name : #NEWLINE# #INDENT# opts . append ( ( 'name' , repr ( _render_gen_name ( autogen_context , constraint . name ) ) ) ) #NEWLINE# #UNINDENT# return ( '%(prefix)sPrimaryKeyConstraint(%(args)s)' % { #NEWLINE# #INDENT# 'prefix' : _sqlalchemy_autogenerate_prefix ( autogen_context ) , #NEWLINE# 'args' : ', ' . join ( ( [ repr ( c . key ) for c in constraint . columns ] + [ ( '%s=%s' % ( kwname , val ) ) for ( kwname , val ) in opts ] ) ) , #NEWLINE# #UNINDENT# } )