MCPcopy Index your code
hub / github.com/python/cpython / setLocale

Method setLocale

Lib/xml/sax/xmlreader.py:66–73  ·  view source on GitHub ↗

Allow an application to set the locale for errors and warnings. SAX parsers are not required to provide localization for errors and warnings; if they cannot support the requested locale, however, they must raise a SAX exception. Applications may request a locale chan

(self, locale)

Source from the content-addressed store, hash-verified

64 self._err_handler = handler
65
66 def setLocale(self, locale):
67 """Allow an application to set the locale for errors and warnings.
68
69 SAX parsers are not required to provide localization for errors
70 and warnings; if they cannot support the requested locale,
71 however, they must raise a SAX exception. Applications may
72 request a locale change in the middle of a parse."""
73 raise SAXNotSupportedException("Locale support not implemented")
74
75 def getFeature(self, name):
76 "Looks up and returns the state of a SAX2 feature."

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected