]> git-server-git.apps.pok.os.sepia.ceph.com Git - ragweed.git/commitdiff
ragweed/framework: open() not file() 5/head
authorSage Weil <sage@redhat.com>
Tue, 17 Dec 2019 22:02:22 +0000 (16:02 -0600)
committerSage Weil <sage@redhat.com>
Tue, 17 Dec 2019 22:02:22 +0000 (16:02 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
ragweed/framework.py

index 233c57eb354bfce11ef183af003437c8f9627012..802f9ddff4b0e7a3305dcbe2a09d07e2fa34a3d4 100644 (file)
@@ -386,7 +386,7 @@ class RagweedEnv:
                 'To run tests, point environment '
                 + 'variable RAGWEED_CONF to a config file.',
                 )
-        with file(path) as f:
+        with open(path, 'r') as f:
             cfg.readfp(f)
 
         for section in cfg.sections():