Loading Common/Libraries/IRALibrary/src/IRAPy/Connection.py +2 −1 Original line number Diff line number Diff line Loading @@ -22,12 +22,13 @@ class Connection(object): def __init__(self, address, timeout=2): self.address = address self.timeout = timeout def __enter__(self): self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connected = 1 t0 = time.time() while time.time() - t0 < timeout: while time.time() - t0 < self.timeout: connected = self.s.connect_ex(self.address) if connected == 0: break Loading Common/Libraries/IRALibrary/src/IRAPy/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ list of modules: """ import customlogging import ACSLog import Connection from Connection import Connection #Some comments required here. The custom logger mechanism is not working in python. #do the way to separate the system logs to the ones do be shown to the user is to use different Loading Loading
Common/Libraries/IRALibrary/src/IRAPy/Connection.py +2 −1 Original line number Diff line number Diff line Loading @@ -22,12 +22,13 @@ class Connection(object): def __init__(self, address, timeout=2): self.address = address self.timeout = timeout def __enter__(self): self.s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) connected = 1 t0 = time.time() while time.time() - t0 < timeout: while time.time() - t0 < self.timeout: connected = self.s.connect_ex(self.address) if connected == 0: break Loading
Common/Libraries/IRALibrary/src/IRAPy/__init__.py +1 −1 Original line number Diff line number Diff line Loading @@ -11,7 +11,7 @@ list of modules: """ import customlogging import ACSLog import Connection from Connection import Connection #Some comments required here. The custom logger mechanism is not working in python. #do the way to separate the system logs to the ones do be shown to the user is to use different Loading