From 464a507ca238f0ed36a0b1b0241d8eb879c32549 Mon Sep 17 00:00:00 2001 From: "dmitry.duka" Date: Fri, 29 Jan 2021 17:27:28 +0300 Subject: [PATCH] fix for https://github.com/adubkov/py-zabbix/issues/114 --- pyzabbix/sender.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pyzabbix/sender.py b/pyzabbix/sender.py index 42b9d7b..ab07534 100644 --- a/pyzabbix/sender.py +++ b/pyzabbix/sender.py @@ -25,6 +25,8 @@ import struct import re import functools +import ssl +import sslpsk # For python 2 and 3 compatibility try: @@ -466,8 +468,6 @@ def send(self, metrics): class PyZabbixPSKSocketWrapper: - import ssl - import sslpsk """Implements ssl.wrap_socket with PSK instead of certificates. Proxies calls to a `socket` instance.