From: Sage Weil Date: Tue, 17 Dec 2019 22:02:22 +0000 (-0600) Subject: ragweed/framework: open() not file() X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=7741c464e003de2f5232e93f66f61039c32a0b45;p=ragweed.git ragweed/framework: open() not file() Signed-off-by: Sage Weil --- diff --git a/ragweed/framework.py b/ragweed/framework.py index 233c57e..802f9dd 100644 --- a/ragweed/framework.py +++ b/ragweed/framework.py @@ -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():