From c599e88f5e85cf0e72f9b2f622e8a8d4924ef77c Mon Sep 17 00:00:00 2001 From: Roberto Javier Homs Puron Date: Wed, 31 Jul 2024 11:58:46 +0200 Subject: [PATCH 1/3] Fix error on posix in_waiting method --- serialio/aio/posix.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/serialio/aio/posix.py b/serialio/aio/posix.py index 3af9a81..e5caae1 100644 --- a/serialio/aio/posix.py +++ b/serialio/aio/posix.py @@ -269,7 +269,8 @@ async def close(self): # - - - - - - - - - - - - - - - - - - - - - - - - @property - def in_waiting(self): + @ensure_open + async def in_waiting(self): """Return the number of bytes currently in the input buffer.""" # ~ s = fcntl.ioctl(self.fd, termios.FIONREAD, TIOCM_zero_str) s = fcntl.ioctl(self.fd, TIOCINQ, TIOCM_zero_str) From af5681823aa74e6b4a604e5acac1da8cc1f7a4dd Mon Sep 17 00:00:00 2001 From: Roberto Javier Homs Puron Date: Wed, 31 Jul 2024 11:59:27 +0200 Subject: [PATCH 2/3] =?UTF-8?q?Bump=20version:=202.4.0=20=E2=86=92=202.4.1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- serialio/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serialio/__init__.py b/serialio/__init__.py index 1590304..a27150a 100644 --- a/serialio/__init__.py +++ b/serialio/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.4.0" +__version__ = "2.4.1" CONCURRENCY_MAP = { diff --git a/setup.cfg b/setup.cfg index ed197b6..be4bd0a 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.4.0 +current_version = 2.4.1 commit = True tag = True diff --git a/setup.py b/setup.py index 95820b2..66edc79 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ keywords="serial, rs232, rcf2217, socket, tcp, ser2net", packages=find_packages(), url="https://tiagocoutinho.github.io/serialio/", - version="2.4.0", + version="2.4.1", python_requires=">=3.5", zip_safe=True, ) From 7db7ac118062935328178771d694156c202dcc0f Mon Sep 17 00:00:00 2001 From: Roberto Javier Homs Puron Date: Tue, 3 Sep 2024 07:42:43 +0200 Subject: [PATCH 3/3] =?UTF-8?q?Revert=20"Bump=20version:=202.4.0=20?= =?UTF-8?q?=E2=86=92=202.4.1"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit af5681823aa74e6b4a604e5acac1da8cc1f7a4dd. --- serialio/__init__.py | 2 +- setup.cfg | 2 +- setup.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/serialio/__init__.py b/serialio/__init__.py index a27150a..1590304 100644 --- a/serialio/__init__.py +++ b/serialio/__init__.py @@ -1,4 +1,4 @@ -__version__ = "2.4.1" +__version__ = "2.4.0" CONCURRENCY_MAP = { diff --git a/setup.cfg b/setup.cfg index be4bd0a..ed197b6 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,5 +1,5 @@ [bumpversion] -current_version = 2.4.1 +current_version = 2.4.0 commit = True tag = True diff --git a/setup.py b/setup.py index 66edc79..95820b2 100644 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ keywords="serial, rs232, rcf2217, socket, tcp, ser2net", packages=find_packages(), url="https://tiagocoutinho.github.io/serialio/", - version="2.4.1", + version="2.4.0", python_requires=">=3.5", zip_safe=True, )