From 7a5aaa33b2a80b7ca6e45c9e74a2a93067bcf74f Mon Sep 17 00:00:00 2001 From: Alexis Paques Date: Mon, 1 Apr 2019 14:36:43 +0200 Subject: [PATCH] Fix @property and super function does not work properly if the 'NewStyle' class type is not used. https://lgtm.com/rules/10030086/ --- Tools/ecl_ekf/plotting/data_plots.py | 2 +- Tools/uorb_graph/create.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Tools/ecl_ekf/plotting/data_plots.py b/Tools/ecl_ekf/plotting/data_plots.py index 0f63f8ca3d..a19dd42162 100644 --- a/Tools/ecl_ekf/plotting/data_plots.py +++ b/Tools/ecl_ekf/plotting/data_plots.py @@ -37,7 +37,7 @@ def get_max_arg_time_value( return max_arg, max_value, max_time -class DataPlot(): +class DataPlot(object): """ A plotting class interface. Provides functions such as saving the figure. """ diff --git a/Tools/uorb_graph/create.py b/Tools/uorb_graph/create.py index 7f4dd2c67a..64e0da5ffa 100755 --- a/Tools/uorb_graph/create.py +++ b/Tools/uorb_graph/create.py @@ -55,7 +55,7 @@ def get_N_colors(N, s=0.8, v=0.9): return hex_out -class PubSub: +class PubSub(object): """ Collects either publication or subscription information for nodes (modules and topics) & edges """ @@ -184,7 +184,7 @@ class PubSub: return self._module_pubsubs -class Graph: +class Graph(object): """ Collects Node and Edge information by parsing the source tree """ def __init__(self, module_whitelist=[], topic_blacklist=[]): self._current_module = [] # stack with current module (they can be nested) @@ -459,7 +459,7 @@ class Graph: -class OutputGraphviz: +class OutputGraphviz(object): """ write graph using Graphviz """ def __init__(self, graph): @@ -521,7 +521,7 @@ class OutputGraphviz: graph.render(file_name, view=False) -class OutputJSON: +class OutputJSON(object): """ write graph to a JSON file (that can be used with D3.js) """ def __init__(self, graph):