#NEWLINE# def list_or_args( keys , args ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# iter ( keys ) #NEWLINE# if isinstance ( keys , basestring ) : #NEWLINE# #INDENT# keys = [ args ] #NEWLINE# #UNINDENT# #UNINDENT# except TypeError : #NEWLINE# #INDENT# keys = [ keys ] #NEWLINE# #UNINDENT# if args : #NEWLINE# #INDENT# keys . extend ( args ) #NEWLINE# #UNINDENT# return keys