]> git.phdru.name Git - xsetbg.git/blobdiff - rescan_fs.py
Feat: Python 3
[xsetbg.git] / rescan_fs.py
index 1b74f8f15213a4932f4e5326f134bf60e815183b..0abed44c1b3feaec860317f64ee930138570ac05 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Rescan filesystem and update database
 
 Rescan images directories; remove unknown images from DB; add new images.
@@ -82,6 +82,6 @@ with SQLiteMassInsert() as txn:
     txn.query(query)
 
 NULL.close()
-print "New images:", count_new
-print "Existing images:", count_old
-print "Removed images:", count_del
+print("New images:", count_new)
+print("Existing images:", count_old)
+print("Removed images:", count_del)