pyedbglib/serialport/serialportmap.py
def find_matching_tools_ports(self, serial_endswith):
        """
        Find tools and ports matching (partial) serial number.

        :param serial_endswith: serial number, or at least end part thereof
        :return: List of matching {tool, port} dicts
        """
        matches = []
        for item in self.portmap:
            if item["tool"].serial_number.endswith(serial_endswith):
                matches.append(item)
        return matches

        Find tools and ports matching (partial) serial number.

        :param serial_endswith: serial number, or at least end part thereof
        :return: List of matching {tool, port} dicts
        
Find tools and ports matching (partial) serial number.
Find tools and ports matching ( partial ) serial number .
def find_matching_tools_ports(self, serial_endswith):
        matches = []
        for item in self.portmap:
            if item["tool"].serial_number.endswith(serial_endswith):
                matches.append(item)
        return matches
def find_matching_tools_ports ( self , serial_endswith ) : matches = [ ] for item in self . portmap : if item [ "tool" ] . serial_number . endswith ( serial_endswith ) : matches . append ( item ) return matches
Find tools and ports matching (partial) serial number.
Find tools and ports matching ( partial ) serial number .
"""
        Find tools and ports matching (partial) serial number.

        :param serial_endswith: serial number, or at least end part thereof
        :return: List of matching {tool, port} dicts
        """
List of matching {tool, port} dicts
List of matching { tool port } dicts
self
serial_endswith
serial number, or at least end part thereof
serial number or at least end part thereof