def SplitMeta(meta):
 n = len(meta)
 if ((n % 2) == 1):
  raise ConfigurationError(('%r has an odd number of metacharacters' % meta))
 return (meta[:(n / 2)], meta[(n / 2):])

def SplitMeta ( meta ) : n = len ( meta ) if ( ( n % 2 ) == 1 ) : raise ConfigurationError ( ( '%r has an odd number of metacharacters' % meta ) ) return ( meta [ : ( n / 2 ) ] , meta [ ( n / 2 ) : ] )
split and validate metacharacters .