Skip to content

Commit 464a507

Browse files
author
dmitry.duka
committed
fix for #114
1 parent 18f546d commit 464a507

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pyzabbix/sender.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
import struct
2626
import re
2727
import functools
28+
import ssl
29+
import sslpsk
2830

2931
# For python 2 and 3 compatibility
3032
try:
@@ -466,8 +468,6 @@ def send(self, metrics):
466468

467469

468470
class PyZabbixPSKSocketWrapper:
469-
import ssl
470-
import sslpsk
471471
"""Implements ssl.wrap_socket with PSK instead of certificates.
472472
473473
Proxies calls to a `socket` instance.

0 commit comments

Comments
 (0)