]> git.phdru.name Git - m_lib.git/blobdiff - m_lib/hash/test/test-shelve3.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / hash / test / test-shelve3.py
index e6f76d3e154f9ecb03c80468bd5b9c7b12ce4f7c..bb2fb5fcdbbd6e45139fcae21d4027ad30119924 100755 (executable)
@@ -1,6 +1,7 @@
 #! /usr/bin/env python
 
 
+from __future__ import print_function
 from m_lib.hash import zshelve
 
 db = zshelve.CompressedShelf("dbz", 'c')
@@ -8,5 +9,5 @@ db["test"] = "Test Ok!"
 db.close()
 
 db = zshelve.CompressedShelf("dbz", 'r')
-print db["test"]
+print(db["test"])
 db.close()