From 84b0df043709c973cb14232b09f92b855b43c769 Mon Sep 17 00:00:00 2001 From: Michael H Date: Mon, 2 Apr 2018 22:17:40 -0400 Subject: [PATCH] [V3 Data Converter] Python3.5 compatibility issue patch (#1491) * python3.5 patch * urf -> utf --- redbot/core/utils/data_converter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/redbot/core/utils/data_converter.py b/redbot/core/utils/data_converter.py index bc4029827..178c856ce 100644 --- a/redbot/core/utils/data_converter.py +++ b/redbot/core/utils/data_converter.py @@ -28,7 +28,7 @@ class DataConverter: The file isn't valid JSON """ try: - with open(file_path, mode='r') as f: + with file_path.open(mode='r', encoding='utf-8') as f: data = json.load(f) except (FileNotFoundError, json.JSONDecodeError): raise