def prohibit_output(data, tables=None):
 for char in data:
  for check in tables:
   if check(char):
    raise StringPrepError((u'Prohibited code point: %s' % char))

def prohibit_output ( data , tables = None ) : for char in data : for check in tables : if check ( char ) : raise StringPrepError ( ( u'Prohibited code point: %s' % char ) )
before the text can be emitted .