From 6b99b6fded94ae1ed8421c624246362e7925fb08 Mon Sep 17 00:00:00 2001
From: Sebastian Koslowski <koslowski@kit.edu>
Date: Thu, 21 Jul 2016 11:30:42 +0200
Subject: grc: refactor: replace get_enabled by prop

---
 grc/core/utils/_complexity.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'grc/core/utils/_complexity.py')

diff --git a/grc/core/utils/_complexity.py b/grc/core/utils/_complexity.py
index 6da16eb28d..c0f3ae9de4 100644
--- a/grc/core/utils/_complexity.py
+++ b/grc/core/utils/_complexity.py
@@ -29,7 +29,7 @@ def calculate_flowgraph_complexity(flowgraph):
     blocks = float(len(flowgraph.blocks))
     connections = float(len(flowgraph.connections))
     elements = blocks + connections
-    disabled_connections = sum(not c.get_enabled() for c in flowgraph.connections)
+    disabled_connections = sum(not c.enabled for c in flowgraph.connections)
 
     variables = elements - blocks - connections
     enabled = float(len(flowgraph.get_enabled_blocks()))
-- 
cgit v1.2.3