pypck 0.8.4__tar.gz → 0.8.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (27) hide show
  1. {pypck-0.8.4/pypck.egg-info → pypck-0.8.5}/PKG-INFO +1 -1
  2. pypck-0.8.5/VERSION +1 -0
  3. {pypck-0.8.4 → pypck-0.8.5}/pypck/connection.py +7 -12
  4. {pypck-0.8.4 → pypck-0.8.5}/pypck/timeout_retry.py +1 -4
  5. {pypck-0.8.4 → pypck-0.8.5/pypck.egg-info}/PKG-INFO +1 -1
  6. pypck-0.8.4/VERSION +0 -1
  7. {pypck-0.8.4 → pypck-0.8.5}/LICENSE +0 -0
  8. {pypck-0.8.4 → pypck-0.8.5}/README.md +0 -0
  9. {pypck-0.8.4 → pypck-0.8.5}/pypck/__init__.py +0 -0
  10. {pypck-0.8.4 → pypck-0.8.5}/pypck/helpers.py +0 -0
  11. {pypck-0.8.4 → pypck-0.8.5}/pypck/inputs.py +0 -0
  12. {pypck-0.8.4 → pypck-0.8.5}/pypck/lcn_addr.py +0 -0
  13. {pypck-0.8.4 → pypck-0.8.5}/pypck/lcn_defs.py +0 -0
  14. {pypck-0.8.4 → pypck-0.8.5}/pypck/module.py +0 -0
  15. {pypck-0.8.4 → pypck-0.8.5}/pypck/pck_commands.py +0 -0
  16. {pypck-0.8.4 → pypck-0.8.5}/pypck/request_handlers.py +0 -0
  17. {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/SOURCES.txt +0 -0
  18. {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/dependency_links.txt +0 -0
  19. {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/not-zip-safe +0 -0
  20. {pypck-0.8.4 → pypck-0.8.5}/pypck.egg-info/top_level.txt +0 -0
  21. {pypck-0.8.4 → pypck-0.8.5}/pyproject.toml +0 -0
  22. {pypck-0.8.4 → pypck-0.8.5}/setup.cfg +0 -0
  23. {pypck-0.8.4 → pypck-0.8.5}/tests/test_commands.py +0 -0
  24. {pypck-0.8.4 → pypck-0.8.5}/tests/test_connection.py +0 -0
  25. {pypck-0.8.4 → pypck-0.8.5}/tests/test_dyn_text.py +0 -0
  26. {pypck-0.8.4 → pypck-0.8.5}/tests/test_messages.py +0 -0
  27. {pypck-0.8.4 → pypck-0.8.5}/tests/test_vars.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pypck
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
pypck-0.8.5/VERSION ADDED
@@ -0,0 +1 @@
1
+ 0.8.5
@@ -181,10 +181,8 @@ class PchkConnectionManager:
181
181
  )
182
182
  continue
183
183
  await self.process_message(message)
184
- except asyncio.CancelledError:
185
- pass
186
-
187
- _LOGGER.debug("Read data loop closed")
184
+ finally:
185
+ _LOGGER.debug("Read data loop closed")
188
186
 
189
187
  async def write_data_loop(self) -> None:
190
188
  """Processes queue and writes data."""
@@ -204,14 +202,11 @@ class PchkConnectionManager:
204
202
  self.writer.write(data)
205
203
  await self.writer.drain()
206
204
  self.last_bus_activity = time.time()
207
- except asyncio.CancelledError:
208
- pass
209
-
210
- # empty the queue
211
- while not self.buffer.empty():
212
- await self.buffer.get()
213
-
214
- _LOGGER.debug("Write data loop closed")
205
+ finally:
206
+ # empty the queue
207
+ while not self.buffer.empty():
208
+ await self.buffer.get()
209
+ _LOGGER.debug("Write data loop closed")
215
210
 
216
211
  # Open/close connection, authentication & setup.
217
212
 
@@ -65,10 +65,7 @@ class TimeoutRetryHandler:
65
65
  async def done(self) -> None:
66
66
  """Signal the completion of the TimeoutRetryHandler."""
67
67
  if self.timeout_loop_task is not None:
68
- try:
69
- await self.timeout_loop_task
70
- except asyncio.CancelledError:
71
- pass
68
+ await self.timeout_loop_task
72
69
 
73
70
  async def cancel(self) -> None:
74
71
  """Must be called when a response (requested or not) is received."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: pypck
3
- Version: 0.8.4
3
+ Version: 0.8.5
4
4
  Summary: LCN-PCK library
5
5
  Home-page: https://github.com/alengwenus/pypck
6
6
  Author-email: Andre Lengwenus <alengwenus@gmail.com>
pypck-0.8.4/VERSION DELETED
@@ -1 +0,0 @@
1
- 0.8.4
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes