Closed halcy closed 8 years ago
This is a very good point. Could you separate the new network info function from the log commit substitute the old print_network_info
with your new function? Maybe call it get_network_info
. This way one can just do:
print(tools.get_network_info(network))
Gladly, though likely tomorrow rather than today. I also noticed that I misread parts of the print function, adding newlines instead of tabs, so I'll fix that tomorrow and do a new (and properly separated) pull request.
Adding to my previous pull request, adds a function that works like print_network_info that returns the network information as a string instead of printing it.