diff --git a/socket/metadata.txt b/socket/metadata.txt index 617aff36..690d4565 100644 --- a/socket/metadata.txt +++ b/socket/metadata.txt @@ -1,4 +1,4 @@ srctype = micropython-lib type = module -version = 0.3.2 +version = 0.3.3 author = Paul Sokolovsky diff --git a/socket/setup.py b/socket/setup.py index 9126c238..887a8109 100644 --- a/socket/setup.py +++ b/socket/setup.py @@ -6,7 +6,7 @@ from setuptools import setup setup(name='micropython-socket', - version='0.3.2', + version='0.3.3', description='socket 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', diff --git a/socket/socket.py b/socket/socket.py index fee54157..c07ce346 100644 --- a/socket/socket.py +++ b/socket/socket.py @@ -7,6 +7,8 @@ IPPROTO_IP = 0 IP_ADD_MEMBERSHIP = 35 IP_DROP_MEMBERSHIP = 36 +error = OSError + def _resolve_addr(addr): if isinstance(addr, (bytes, bytearray)): return addr