From 13e5db0637204b9164ed5cab4cef129505548407 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 7 Feb 2023 17:30:13 +0100 Subject: Python 2.x -> 3.x conversion --- scripts/pyranking/db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/pyranking/db.py') diff --git a/scripts/pyranking/db.py b/scripts/pyranking/db.py index 16595d3..f30a555 100644 --- a/scripts/pyranking/db.py +++ b/scripts/pyranking/db.py @@ -1,7 +1,7 @@ import json import mysql.connector -settings = json.load(file('config/db.json')) +settings = json.load(open('config/db.json')) connection = mysql.connector.connect( user=settings['user'], -- cgit v1.2.3