(addr,family)
| 690 | |
| 691 | @staticmethod |
| 692 | def addr_to_python(addr,family): |
| 693 | if (family == socket.AF_INET): |
| 694 | return socket.inet_ntop(family,struct.pack('I', addr)) |
| 695 | else: |
| 696 | return socket.inet_ntop(family,b''.join(addr)) |
| 697 | |
| 698 | @staticmethod |
| 699 | def addr_to_dbus(addr,family): |
no test coverage detected