def define_plugin_entry(name, module_name):
 if isinstance(name, tuple):
  (entry, name) = name
 else:
  entry = name
 return ('%s = %s:%s' % (entry, module_name, name))

def define_plugin_entry ( name , module_name ) : if isinstance ( name , tuple ) : ( entry , name ) = name else : entry = name return ( '%s = %s:%s' % ( entry , module_name , name ) )
helper to produce lines suitable for setup .