Fix the locale module docstring
This commit is contained in:
parent
918e244c13
commit
43e7fcb227
|
@ -27,9 +27,16 @@
|
||||||
#include "py/obj.h"
|
#include "py/obj.h"
|
||||||
#include "py/objtuple.h"
|
#include "py/objtuple.h"
|
||||||
|
|
||||||
//| def getlocale(path: str, times: Tuple[int, int]) -> None:
|
//| """Locale support module"""
|
||||||
//| """Change the timestamp of a file."""
|
//|
|
||||||
//| ...
|
//| def getlocale() -> None:
|
||||||
|
//| """Returns the current locale setting as a tuple ``(language code, "utf-8")``
|
||||||
|
//|
|
||||||
|
//| The language code comes from the installed translation of CircuitPython, specifically the "Language:" code specified in the translation metadata.
|
||||||
|
//| This can be useful to allow modules coded in Python to show messages in the user's preferred language.
|
||||||
|
//|
|
||||||
|
//| Differences from CPython: No ``LC_*`` argument is permitted.
|
||||||
|
//| """
|
||||||
//|
|
//|
|
||||||
STATIC mp_obj_t getlocale(void) {
|
STATIC mp_obj_t getlocale(void) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue