From d6edab4a0f2b32288b355269da94813007c6ba00 Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 27 Oct 2022 18:18:30 +0300 Subject: [PATCH] Fix deprecated open mode `rU` -> `r` --- reload_db.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reload_db.py b/reload_db.py index 3c9c56e..ff1c3a6 100755 --- a/reload_db.py +++ b/reload_db.py @@ -20,7 +20,7 @@ def convert_str(s): fs_encoding = xsetbg_conf.get("images", "fs_encoding") -dump_file = open(sys.argv[1], 'rU') +dump_file = open(sys.argv[1], 'r') xsetbg_db = recreate_db() count_new = count_old = 0 -- 2.39.5