From f4a00a1941b6d0933dd1a48e99607a71a9028b5c Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Tue, 7 Aug 2018 22:03:58 -0400 Subject: [PATCH] Use config.read_file() instead of .readfp The latter is deprecated --- git-srht-update-hook | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-srht-update-hook b/git-srht-update-hook index fc516f6..41102c0 100755 --- a/git-srht-update-hook +++ b/git-srht-update-hook @@ -26,7 +26,7 @@ if op == "hooks/post-update": config = ConfigParser() with open("config") as f: - config.readfp(f) + config.read_file(f) repo_id = config.get("srht", "repo-id") if not repo_id: -- 2.38.4