| 1 | This patches add compatibility for the forthcoming RobotFramework 5.
|
| 2 |
|
| 3 | Taken from: https://github.com/robotframework/SSHLibrary/pull/403.
|
| 4 | diff --git a/src/SSHLibrary/pythonforward.py b/src/SSHLibrary/pythonforward.py
|
| 5 | index 8b85997b7..607985cf4 100644
|
| 6 | |
| 7 | |
| 8 | @@ -1,9 +1,9 @@
|
| 9 | import select
|
| 10 | import socket
|
| 11 | import threading
|
| 12 | -from robot.utils import platform
|
| 13 | +from robot.utils import PY2, WINDOWS
|
| 14 | from .logger import logger
|
| 15 | -if platform.PY2 and platform.WINDOWS:
|
| 16 | +if PY2 and WINDOWS:
|
| 17 | import win_inet_pton
|
| 18 | try:
|
| 19 | import SocketServer
|