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.