From e50c58e5858a3b4d9ad403c3c184d4cbd4e65cc9 Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Mon, 4 Feb 2019 16:11:42 +0200 Subject: [PATCH] tests: Replace file() with open() to work with python3 Signed-off-by: Jouni Malinen --- tests/hwsim/test_fst_config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/hwsim/test_fst_config.py b/tests/hwsim/test_fst_config.py index 0c0107cb2..d497819bd 100644 --- a/tests/hwsim/test_fst_config.py +++ b/tests/hwsim/test_fst_config.py @@ -236,7 +236,7 @@ class FstLauncher: pid = -1 try: for i in range(3): - pf = file(pidfile, 'r') + pf = open(pidfile, 'r') pidtxt = pf.read().strip() self.logger.debug("kill_pid: %s: '%s'" % (pidfile, pidtxt)) pf.close()