os.path: Make join() accept bytes args.

pull/118/head
Paul Sokolovsky 2014-05-26 01:59:41 +03:00
rodzic 5b4e7d9ec8
commit 878edba0dc
3 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -1,4 +1,4 @@
srctype = micropython-lib
type = package
version = 0.0.2
version = 0.0.3
author = Paul Sokolovsky

Wyświetl plik

@ -12,6 +12,9 @@ def abspath(s):
def join(*args):
# TODO: this is non-compliant
if type(args[0]) is bytes:
return b"/".join(args)
else:
return "/".join(args)
def split(path):

Wyświetl plik

@ -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',