]> git.phdru.name Git - m_librarian.git/blobdiff - scripts/ml-initdb.py
Update code for compatibility with Python 3
[m_librarian.git] / scripts / ml-initdb.py
index 0d4e73b6467d7e93bff7febe22e9622ad3b8e64b..6535d4559827ac37b7b4ffa36925f39604ff03b5 100755 (executable)
@@ -1,5 +1,6 @@
 #! /usr/bin/env python
 
+from __future__ import print_function
 import argparse
 from m_librarian.config import get_config
 from m_librarian.db import open_db, init_db
@@ -18,6 +19,6 @@ if __name__ == '__main__':
     init_db()
     old, new = import_glst()
     if old:
-        print "Imported %d genres (ignored %d existing)" % (new, old)
+        print("Imported %d genres (ignored %d existing)" % (new, old))
     else:
-        print "Imported %d genres" % new
+        print("Imported %d genres" % new)