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
|
||||
type = package
|
||||
version = 0.0.2
|
||||
version = 0.0.3
|
||||
author = Paul Sokolovsky
|
||||
|
|
|
@ -12,7 +12,10 @@ def abspath(s):
|
|||
|
||||
def join(*args):
|
||||
# TODO: this is non-compliant
|
||||
return "/".join(args)
|
||||
if type(args[0]) is bytes:
|
||||
return b"/".join(args)
|
||||
else:
|
||||
return "/".join(args)
|
||||
|
||||
def split(path):
|
||||
if path == "":
|
||||
|
|
|
@ -6,7 +6,7 @@ from setuptools import setup
|
|||
|
||||
|
||||
setup(name='micropython-os.path',
|
||||
version='0.0.2',
|
||||
version='0.0.3',
|
||||
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.",
|
||||
url='https://github.com/micropython/micropython/issues/405',
|
||||
|
|
Ładowanie…
Reference in New Issue