From 6379953b2496f13893ebec4c060719f48c404b2d Mon Sep 17 00:00:00 2001 From: Alan Hamlett Date: Sat, 4 Mar 2017 10:22:44 -0800 Subject: [PATCH] configparser.ConfigParser.readfp renamed to read_file --- wakatime/configs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wakatime/configs.py b/wakatime/configs.py index d62a44a..fb399b6 100644 --- a/wakatime/configs.py +++ b/wakatime/configs.py @@ -45,7 +45,7 @@ def parseConfigFile(configFile=None): try: with open(configFile, 'r', encoding='utf-8') as fh: try: - configs.readfp(fh) + configs.read_file(fh) except configparser.Error: print(traceback.format_exc()) return None