]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Replace file() with open() to work with python3
authorJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 14:11:42 +0000 (16:11 +0200)
committerJouni Malinen <j@w1.fi>
Mon, 4 Feb 2019 14:11:42 +0000 (16:11 +0200)
Signed-off-by: Jouni Malinen <j@w1.fi>
tests/hwsim/test_fst_config.py

index 0c0107cb2cdc0e8559faa5e39da4098cbc77aad8..d497819bddc5f97f713fd4904b6cf9121760bebf 100644 (file)
@@ -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()