summaryrefslogtreecommitdiff
path: root/scripts/pyranking/db.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2023-02-07 17:30:13 +0100
committeremkael <emkael@tlen.pl>2023-02-07 17:30:13 +0100
commit13e5db0637204b9164ed5cab4cef129505548407 (patch)
tree7ff1c97ac01a256c9dc3f4bbc269e06b33096376 /scripts/pyranking/db.py
parent79d084a1222062df47528b8340a83ef679735267 (diff)
Python 2.x -> 3.x conversion
Diffstat (limited to 'scripts/pyranking/db.py')
-rw-r--r--scripts/pyranking/db.py2
1 files changed, 1 insertions, 1 deletions
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'],