def info_from_entry(self, entry): """Return the most important info from a uPnP entry.""" url = urlparse(entry.values['location']) device = entry.description['device'] return url.hostname, device['serialNumber']
def info_from_entry(self, entry): """ Returns the most important info from a uPnP entry. """ return urlparse(entry.values['location']).hostname
def info_from_entry(self, entry): """Returns the most important info from a uPnP entry.""" return urlparse(entry.values['location']).hostname
def info_from_entry(self, entry): """Return the most important info from a uPnP entry.""" parsed = urlparse(entry.values['location']) return '{}:{}'.format(parsed.hostname, parsed.port)
def info_from_entry(self, entry): """Returns the most important info from a uPnP entry.""" url = urlparse(entry.values['location']) return (entry.description['device']['modelNumber'], url.hostname)
def info_from_entry(self, entry): """Return the most important info from a uPnP entry.""" info = urlparse(entry.location) return info.hostname, info.port
def info_from_entry(self, entry): """Returns the most important info from a uPnP entry.""" info = urlparse(entry.location) return info.hostname, info.port
def info_from_entry(self, entry): """Returns the most important info from a uPnP entry.""" parsed = urlparse(entry.values['location']) return '{}:{}'.format(parsed.hostname, parsed.port)