mirror of https://github.com/ARMmbed/mbed-os.git
pyFlakes issues fixed. Simple refactoring
parent
7a5d00bd65
commit
f55c0aca43
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue