diff options
Diffstat (limited to 'pylint/graph.py')
-rw-r--r-- | pylint/graph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pylint/graph.py b/pylint/graph.py index 76d254c..17ff75d 100644 --- a/pylint/graph.py +++ b/pylint/graph.py @@ -164,7 +164,7 @@ def _get_cycles(graph_dict, path, visited, result, vertice): index = cycle.index(start_from) cycle = cycle[index:] + cycle[0:index] # append it to result if not already in - if not cycle in result: + if cycle not in result: result.append(cycle) return path.append(vertice) |