pyFlakes issues fixed. Simple refactoring

pull/399/head
Przemek Wirkus 2014-07-09 11:17:20 +01:00
parent 7a5d00bd65
commit f55c0aca43
1 changed files with 3 additions and 6 deletions

View File

@ -17,7 +17,7 @@ limitations under the License.
from socket import socket, AF_INET, SOCK_DGRAM
import re
from host_test import Test, DefaultTest
from host_test import DefaultTest
from time import time
from sys import stdout
@ -26,11 +26,8 @@ class UDPEchoServerTest(DefaultTest):
ECHO_PORT = 0
s = None # Socket
pattern_server_ip = "^Server IP Address is (\d+).(\d+).(\d+).(\d+):(\d+)"
re_detect_server_ip = re.compile(pattern_server_ip)
def print_result(self, result):
print "\n{%s}\n{end}" % result
PATTERN_SERVER_IP = "^Server IP Address is (\d+).(\d+).(\d+).(\d+):(\d+)"
re_detect_server_ip = re.compile(PATTERN_SERVER_IP)
def run(self):
ip_msg_timeout = self.mbed.options.timeout