| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,15 +17,15 @@ def on_service_state_change(zeroconf, service_type, name, state_change): | |||
| 17 | 17 | if state_change is ServiceStateChange.Added: | |
| 18 | 18 | info = zeroconf.get_service_info(service_type, name) | |
| 19 | 19 | if info: | |
| 20 | - print(" Address is %s:%d" % (socket.inet_ntoa(info.address), | ||
| 21 | - info.port)) | ||
| 22 | - print(" Weight is %d, Priority is %d" % (info.weight, | ||
| 23 | - info.priority)) | ||
| 24 | - print(" Server is", info.server) | ||
| 20 | + print(" Address: %s:%d" % (socket.inet_ntoa(info.address), info.port)) | ||
| 21 | + print(" Weight: %d, priority: %d" % (info.weight, info.priority)) | ||
| 22 | + print(" Server: %s" % (info.server,)) | ||
| 25 | 23 | if info.properties: | |
| 26 | - print(" Properties are") | ||
| 24 | + print(" Properties are:") | ||
| 27 | 25 | for key, value in info.properties.items(): | |
| 28 | 26 | print(" %s: %s" % (key, value)) | |
| 27 | + else: | ||
| 28 | + print(" No properties") | ||
| 29 | 29 | else: | |
| 30 | 30 | print(" No info") | |
| 31 | 31 | print('\n') | |
| Back | FazBrowse Home | New Git URL |
0 commit comments