]> git.phdru.name Git - xsetbg.git/blobdiff - dump_db.py
Feat: Python 3
[xsetbg.git] / dump_db.py
index ea6b0f16ea8e7254dbc2bca9dc1f9fe3cde4bb5b..470ff0a06c9120de7ad72667ac0bc18017ba9a22 100755 (executable)
@@ -1,4 +1,4 @@
-#! /usr/bin/env python
+#! /usr/bin/env python3
 """Dump the DB sorted by date
 
 This file is a part of XSetBg.
@@ -13,4 +13,4 @@ if not xsetbg_db:
     sys.exit("Error: no database found")
 
 for row in xsetbg_db.select(orderBy='-last_shown'):
-    print row.id, row.last_shown, row.full_name.encode(default_encoding)
+    print(row.id, row.last_shown, row.full_name.encode(default_encoding))