File: python-robotframework-sshlibrary-rf5-compat.patch

package info (click to toggle)
guix 1.4.0-9
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 161,500 kB
  • sloc: lisp: 861,023; cpp: 10,741; javascript: 9,632; sh: 8,913; makefile: 951; ansic: 558; python: 129; sql: 33; sed: 16
file content (19 lines) | stat: -rw-r--r-- 607 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
This patches add compatibility for the forthcoming RobotFramework 5.

Taken from: https://github.com/robotframework/SSHLibrary/pull/403.
diff --git a/src/SSHLibrary/pythonforward.py b/src/SSHLibrary/pythonforward.py
index 8b85997b7..607985cf4 100644
--- a/src/SSHLibrary/pythonforward.py
+++ b/src/SSHLibrary/pythonforward.py
@@ -1,9 +1,9 @@
 import select
 import socket
 import threading
-from robot.utils import platform
+from robot.utils import PY2, WINDOWS
 from .logger import logger
-if platform.PY2 and platform.WINDOWS:
+if PY2 and WINDOWS:
     import win_inet_pton
 try:
     import SocketServer