fa76cb8f8c66e2068d7f7dce5018ff73d7539db5,homeassistant/components/zwave.py,,nice_print_node,#Any#,30

Before Change


    print("")
    print("")
    print("FOUND NODE", node.product_name)
    pprint({key: getattr(node, key) for key
            in dir(node)
            if key != "values" and
            not hasattr(getattr(node, key), "__call__")})
    print("")
    print("")
    print("VALUES")
    pprint({

After Change


def nice_print_node(node):
     Prints a nice formatted node to the output (debug method) 
    node_dict = _obj_to_dict(node)
    node_dict["values"] = {value_id: _obj_to_dict(value)
                           for value_id, value in node.values.items()}

    print("\n\n\n")
    print("FOUND NODE", node.product_name)
    pprint(node_dict)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: home-assistant/home-assistant
Commit Name: fa76cb8f8c66e2068d7f7dce5018ff73d7539db5
Time: 2015-02-28
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/zwave.py
Class Name:
Method Name: nice_print_node


Project Name: home-assistant/home-assistant
Commit Name: 71ca07363a9b521523b893dd26841cb1ac5ac8a5
Time: 2015-02-25
Author: paulus@paulusschoutsen.nl
File Name: homeassistant/components/zwave.py
Class Name:
Method Name: nice_print_node


Project Name: Scitator/catalyst
Commit Name: d5a3969d143e1497452f2d5226f9160aa34fc202
Time: 2019-03-26
Author: scitator@gmail.com
File Name: catalyst/rl/offpolicy/scripts/run_samplers.py
Class Name:
Method Name: run_sampler