From: Jouni Malinen Date: Mon, 4 Feb 2019 14:11:42 +0000 (+0200) Subject: tests: Replace file() with open() to work with python3 X-Git-Tag: hostap_2_8~438 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e50c58e5858a3b4d9ad403c3c184d4cbd4e65cc9;p=thirdparty%2Fhostap.git tests: Replace file() with open() to work with python3 Signed-off-by: Jouni Malinen --- 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()