Skip to content

Commit c5baf69

Browse files
committed
Warn when using deprecated clients
Instead of the other way around, warning when not using them.
1 parent d4f5f9e commit c5baf69

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pymodbus/client/asynchronous/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@
3737
if installed:
3838
# Import deprecated async client only if twisted is installed #338
3939
from pymodbus.client.asynchronous.deprecated.asynchronous import *
40-
else:
4140
import logging
4241
logger = logging.getLogger(__name__)
43-
logger.warning("Not Importing deprecated clients. "
44-
"Dependency Twisted is not Installed")
42+
logger.warning("Importing deprecated clients. "
43+
"Dependency Twisted is Installed")

0 commit comments

Comments
 (0)