kopia lustrzana https://github.com/micropython/micropython-lib
locale: Add dummy implementation with getpreferredencoding().
rodzic
8c2bbe482d
commit
3e5e63a951
|
@ -0,0 +1,2 @@
|
|||
def getpreferredencoding():
|
||||
return "utf-8"
|
|
@ -0,0 +1,3 @@
|
|||
srctype=dummy
|
||||
type=module
|
||||
version=0.0.1
|
|
@ -0,0 +1,18 @@
|
|||
import sys
|
||||
# Remove current dir from sys.path, otherwise setuptools will peek up our
|
||||
# module instead of system.
|
||||
sys.path.pop(0)
|
||||
from setuptools import setup
|
||||
|
||||
|
||||
setup(name='micropython-locale',
|
||||
version='0.0.1',
|
||||
description='Dummy locale module for MicroPython',
|
||||
long_description='This is a dummy implementation of a module for MicroPython standard library.\nIt contains zero or very little functionality, and primarily intended to\navoid import errors (using idea that even if an application imports a\nmodule, it may be not using it onevery code path, so may work at least\npartially). It is expected that more complete implementation of the module\nwill be provided later. Please help with the development if you are\ninterested in this module.',
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
author='MicroPython Developers',
|
||||
author_email='micro-python@googlegroups.com',
|
||||
maintainer='MicroPython Developers',
|
||||
maintainer_email='micro-python@googlegroups.com',
|
||||
license='MIT',
|
||||
py_modules=['locale'])
|
Ładowanie…
Reference in New Issue