]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/download.py
Update code for compatibility with Python 3
[m_librarian.git] / m_librarian / download.py
index 8e309cb3cbda9a26b856d4f778fbcb25157740ab..6f4daf4fe31e17d2cb75a13e9206dff317cfa2b4 100755 (executable)
@@ -1,5 +1,6 @@
 #! /usr/bin/env python
 
+from __future__ import print_function
 import os
 from time import mktime
 from shutil import copyfileobj
@@ -108,7 +109,7 @@ def download(book, path=None, a_format=None):
 
 def test():
     _compile_format()
-    print compiled_format
+    print(compiled_format)
 
 if __name__ == '__main__':
     test()