]> git.phdru.name Git - m_lib.git/blob - m_lib/hash/test/test-shelve3.py
Use print function for Py3 compatibility
[m_lib.git] / m_lib / hash / test / test-shelve3.py
1 #! /usr/bin/env python
2
3
4 from __future__ import print_function
5 from m_lib.hash import zshelve
6
7 db = zshelve.CompressedShelf("dbz", 'c')
8 db["test"] = "Test Ok!"
9 db.close()
10
11 db = zshelve.CompressedShelf("dbz", 'r')
12 print(db["test"])
13 db.close()