From ce79edcc3035175fd191e542c8b3b696da0128a7 Mon Sep 17 00:00:00 2001 From: boccioli_m Date: Tue, 17 Oct 2017 16:22:47 +0200 Subject: [PATCH] Closedown --- script/local.py | 6 ++++-- script/tests/tests.properties | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/script/local.py b/script/local.py index 518b90c..4433f17 100644 --- a/script/local.py +++ b/script/local.py @@ -132,7 +132,6 @@ class Interlock: """ class for getting - setting interlock mode """ - import binascii from array import * # mode, test pattern for outputs 2-4, test pattern for output 5, expected pattern for 2-4, expected pattern for 5 rps_mask1 = 0x4440 # mask for outputs 2-4 @@ -163,6 +162,7 @@ class Interlock: return self.msg_default def setInterlockMode(self, mode): + import binascii udp = UDPDatagram() msg = self._msgWrite() modebytes = array('B', mode) @@ -174,6 +174,7 @@ class Interlock: return true def getInterlockMode(self): + import binascii udp = UDPDatagram() msg = self._msgRead() print binascii.hexlify(msg) @@ -182,6 +183,7 @@ class Interlock: return rcv def masterReset(self): + import binascii udp = UDPDatagram() msg = self._msgReset() print binascii.hexlify(msg) @@ -195,7 +197,6 @@ class UDPDatagram: class for receiving and sending a udp message """ import socket - import binascii # the constructor def __init__(self): # communication with interlock server @@ -211,6 +212,7 @@ class UDPDatagram: sys.exit() def _sendUDP(self, message): + import binascii try: # get the ip address and send print 'here should sendto:', self.serverName, self.serverPort diff --git a/script/tests/tests.properties b/script/tests/tests.properties index 2d79bc4..4e40c42 100644 --- a/script/tests/tests.properties +++ b/script/tests/tests.properties @@ -1,5 +1,5 @@ #TestingList for pshell: configuration properties -#Tue Oct 17 16:20:39 CEST 2017 +#Tue Oct 17 16:20:56 CEST 2017 customPanel= showEnabledTestsOnly=true listFilter=rps-test