"p">: continue e = child(locale, "default") if e is None: schema.remove(locale) else: e = child(locale, "short") if e is not None: locale.remove(e) e = child(locale, "long") if e is not None: locale.remove(e) xml.write(sys.stdout, "UTF-8")