kopia lustrzana https://github.com/micropython/micropython-lib
os.path: Make join() accept bytes args.
rodzic
5b4e7d9ec8
commit
878edba0dc
|
@ -1,4 +1,4 @@
|
||||||
srctype = micropython-lib
|
srctype = micropython-lib
|
||||||
type = package
|
type = package
|
||||||
version = 0.0.2
|
version = 0.0.3
|
||||||
author = Paul Sokolovsky
|
author = Paul Sokolovsky
|
||||||
|
|
|
@ -12,6 +12,9 @@ def abspath(s):
|
||||||
|
|
||||||
def join(*args):
|
def join(*args):
|
||||||
# TODO: this is non-compliant
|
# TODO: this is non-compliant
|
||||||
|
if type(args[0]) is bytes:
|
||||||
|
return b"/".join(args)
|
||||||
|
else:
|
||||||
return "/".join(args)
|
return "/".join(args)
|
||||||
|
|
||||||
def split(path):
|
def split(path):
|
||||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
||||||
|
|
||||||
|
|
||||||
setup(name='micropython-os.path',
|
setup(name='micropython-os.path',
|
||||||
version='0.0.2',
|
version='0.0.3',
|
||||||
description='os.path module for MicroPython',
|
description='os.path module for MicroPython',
|
||||||
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
long_description="This is a module reimplemented specifically for MicroPython standard library,\nwith efficient and lean design in mind. Note that this module is likely work\nin progress and likely supports just a subset of CPython's corresponding\nmodule. Please help with the development if you are interested in this\nmodule.",
|
||||||
url='https://github.com/micropython/micropython/issues/405',
|
url='https://github.com/micropython/micropython/issues/405',
|
||||||
|
|
Ładowanie…
Reference in New Issue