python3-pexpect: change shebang to python3

we have offcially dropped python2, so it is possible
that our code run on python3 only host, so change
shebang to python3 to avoid error like:
python: command not found

Signed-off-by: Changqing Li <changqing.li@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
Changqing Li 2020-04-24 09:13:28 +08:00 committed by Khem Raj
parent f48d31a4eb
commit 652c27ebb4
2 changed files with 27 additions and 0 deletions

View File

@ -4,6 +4,8 @@ SECTION = "devel/python"
LICENSE = "ISC"
LIC_FILES_CHKSUM = "file://LICENSE;md5=1c7a725251880af8c6a148181665385b"
SRC_URI += "file://0001-FSM.py-change-shebang-from-python-to-python3.patch"
SRC_URI[md5sum] = "153eb25184249d6a85fde9acf4804085"
SRC_URI[sha256sum] = "fc65a43959d153d0114afe13997d439c22823a27cefceb5ff35c2178c6784c0c"

View File

@ -0,0 +1,25 @@
From 35462d7b778eea32fd0cc0bbc79d6e6f53d942b4 Mon Sep 17 00:00:00 2001
From: Changqing Li <changqing.li@windriver.com>
Date: Thu, 23 Apr 2020 08:01:42 +0000
Subject: [PATCH] FSM.py: change shebang from python to python3
Upstream-Status: Pending
Signed-off-by: Changqing Li <changqing.li@windriver.com>
---
pexpect/FSM.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pexpect/FSM.py b/pexpect/FSM.py
index 46b392e..4e77654 100644
--- a/pexpect/FSM.py
+++ b/pexpect/FSM.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python3
'''This module implements a Finite State Machine (FSM). In addition to state
this FSM also maintains a user defined "memory". So this FSM can be used as a
--
2.24.1