From dfd65a94975b8686f6bc1859f0adecfa104beb6e Mon Sep 17 00:00:00 2001 From: Florian Heiderich Date: Sat, 28 Dec 2019 21:04:35 +0100 Subject: [PATCH] make example in index.rst compatible with python3 --- docs/index.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/index.rst b/docs/index.rst index 0692259b..b5515daf 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -8,7 +8,7 @@ Python bindings to the C++ interface of http://rocksdb.org/ using cython:: import rocksdb db = rocksdb.DB("test.db", rocksdb.Options(create_if_missing=True)) db.put(b"a", b"b") - print db.get(b"a") + print(db.get(b"a")) Tested with python2.7 and python3.4 and RocksDB version 5.3.0