#NEWLINE# def command( function ) : #NEWLINE# #INDENT# 'Decorate a function as an IRC command' #NEWLINE# def canonical( name ) : #NEWLINE# #INDENT# return name . strip ( '_' ) . replace ( '_' , '-' ) #NEWLINE# #UNINDENT# name = canonical ( canonical . __name__ ) #NEWLINE# register ( name , function ) #NEWLINE# return function