#NEWLINE# def split_cql_commands( source ) : #NEWLINE# #INDENT# ruleset = cql_rule_set ( ) #NEWLINE# ( statements , in_batch ) = ruleset . cql_split_statements ( source ) #NEWLINE# if in_batch : #NEWLINE# #INDENT# raise ValueError ( 'CQL source ends unexpectedly' ) #NEWLINE# #UNINDENT# return [ ruleset . cql_extract_orig ( toks , source ) for toks in statements if toks ]