]> git.phdru.name Git - xsetbg.git/commitdiff
Fix deprecated open mode `rU` -> `r`
authorOleg Broytman <phd@phdru.name>
Thu, 27 Oct 2022 15:18:30 +0000 (18:18 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 27 Oct 2022 15:18:30 +0000 (18:18 +0300)
reload_db.py

index 3c9c56e64ef3d26ca6fcc0f3cd9f9589309fff4d..ff1c3a697386c344c1a94937714ffd05d11fa93b 100755 (executable)
@@ -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