From ddb8881388e0109136694c1c3f2ceb26f6c08852 Mon Sep 17 00:00:00 2001 From: "ahrenholz@gmail.com" Date: Fri, 31 Oct 2014 16:46:43 +0000 Subject: [PATCH] make calcdistance a staticmethod (Boeing r1897) --- trunk/daemon/core/mobility.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trunk/daemon/core/mobility.py b/trunk/daemon/core/mobility.py index 03b30c3a..2dfb5e8e 100644 --- a/trunk/daemon/core/mobility.py +++ b/trunk/daemon/core/mobility.py @@ -425,7 +425,8 @@ class BasicRangeModel(WirelessModel): self.sendlinkmsg(a, b) - def calcdistance(self, p1, p2): + @staticmethod + def calcdistance(p1, p2): ''' Calculate the distance between two three-dimensional points. ''' a = p1[0] - p2[0]