From 011a18439ff0c20793cc98373c5395659a0f68f7 Mon Sep 17 00:00:00 2001 From: Roi Rav-Hon Date: Wed, 29 Mar 2017 14:31:23 +0300 Subject: [PATCH] PR fixes --- tests/mockLogzioListener/listener.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mockLogzioListener/listener.py b/tests/mockLogzioListener/listener.py index 0a3b79a..df97218 100644 --- a/tests/mockLogzioListener/listener.py +++ b/tests/mockLogzioListener/listener.py @@ -41,7 +41,7 @@ class ListenerHandler(BaseHTTPRequestHandler): class MockLogzioListener: def __init__(self): - self.port = find_available_port() + self.port = _find_available_port() self.host = "localhost" self.server = HTTPServer((self.host, self.port), ListenerHandler) @@ -82,7 +82,7 @@ class MockLogzioListener: self.persistent_flags.clear_server_error() -def find_available_port(): +def _find_available_port(): sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM) sock.bind(("", 0)) sock.listen(1)