Loading pyproject.toml +1 −1 Original line number Diff line number Diff line [tool.poetry] name = "pyrsvp" version = "0.2.0" version = "0.2.1" description = "Implements RSVP communication protocol in Python" authors = ["Mattia Gallacchi <mattia.gallacchi@he-arc.ch>"] readme = "README.md" Loading pyrsvp/rsvpclient.py +9 −10 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ class RsvpClient: return cmd_str[:-1] + "\r\n" def _check_response(self, cmd_name: str, resp: str) -> list: def _check_response(self, cmd_name: str, resp: str) -> dict: """Check the server response and process it Params Loading @@ -75,7 +75,7 @@ class RsvpClient: cmd, status = cmd_reply.split("=") if len(tokens) < 2: return None return {} # You expect to have a REPLY-{cmd_name} if cmd_name in cmd: Loading Loading @@ -139,8 +139,8 @@ class RsvpClientTcp(RsvpClient): @typechecked def send_command( self, cmd_name: str, args: list[RsvpBaseType] = None, callback=None ) -> list: self, cmd_name: str, args: list[RsvpBaseType] = [], callback=None ) -> dict: """Send a command to the RSVP server and wait for a reply. Params Loading Loading @@ -185,10 +185,9 @@ class RsvpClientTcp(RsvpClient): if callback: try: callback(data) return [] except Exception as ex: raise RsvpClientInvalidCallback(ex) from ex else: return data Loading @@ -213,8 +212,8 @@ class RsvpClientSerial(RsvpClient): @typechecked def send_command( self, cmd_name: str, args: list[RsvpBaseType] = None, callback=None ) -> list: self, cmd_name: str, args: list[RsvpBaseType] = [], callback=None ) -> dict: """Send a command to the RSVP server and wait for a reply. Params Loading Loading @@ -261,7 +260,7 @@ class RsvpClientSerial(RsvpClient): if callback: try: callback(data) return [] return {} except Exception as ex: raise RsvpClientInvalidCallback(ex) from ex else: Loading pyrsvp/rsvpserver.py +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class RsvpServer: @typechecked @staticmethod def reply(ack: bool, args: list[RsvpBaseType] = None) -> str: def reply(ack: bool, args: list[RsvpBaseType] = []) -> str: """Build a reply string Params Loading Loading
pyproject.toml +1 −1 Original line number Diff line number Diff line [tool.poetry] name = "pyrsvp" version = "0.2.0" version = "0.2.1" description = "Implements RSVP communication protocol in Python" authors = ["Mattia Gallacchi <mattia.gallacchi@he-arc.ch>"] readme = "README.md" Loading
pyrsvp/rsvpclient.py +9 −10 Original line number Diff line number Diff line Loading @@ -53,7 +53,7 @@ class RsvpClient: return cmd_str[:-1] + "\r\n" def _check_response(self, cmd_name: str, resp: str) -> list: def _check_response(self, cmd_name: str, resp: str) -> dict: """Check the server response and process it Params Loading @@ -75,7 +75,7 @@ class RsvpClient: cmd, status = cmd_reply.split("=") if len(tokens) < 2: return None return {} # You expect to have a REPLY-{cmd_name} if cmd_name in cmd: Loading Loading @@ -139,8 +139,8 @@ class RsvpClientTcp(RsvpClient): @typechecked def send_command( self, cmd_name: str, args: list[RsvpBaseType] = None, callback=None ) -> list: self, cmd_name: str, args: list[RsvpBaseType] = [], callback=None ) -> dict: """Send a command to the RSVP server and wait for a reply. Params Loading Loading @@ -185,10 +185,9 @@ class RsvpClientTcp(RsvpClient): if callback: try: callback(data) return [] except Exception as ex: raise RsvpClientInvalidCallback(ex) from ex else: return data Loading @@ -213,8 +212,8 @@ class RsvpClientSerial(RsvpClient): @typechecked def send_command( self, cmd_name: str, args: list[RsvpBaseType] = None, callback=None ) -> list: self, cmd_name: str, args: list[RsvpBaseType] = [], callback=None ) -> dict: """Send a command to the RSVP server and wait for a reply. Params Loading Loading @@ -261,7 +260,7 @@ class RsvpClientSerial(RsvpClient): if callback: try: callback(data) return [] return {} except Exception as ex: raise RsvpClientInvalidCallback(ex) from ex else: Loading
pyrsvp/rsvpserver.py +1 −1 Original line number Diff line number Diff line Loading @@ -99,7 +99,7 @@ class RsvpServer: @typechecked @staticmethod def reply(ack: bool, args: list[RsvpBaseType] = None) -> str: def reply(ack: bool, args: list[RsvpBaseType] = []) -> str: """Build a reply string Params Loading