summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSun Wei <sunwei0325@gmail.com>2017-12-25 22:13:45 +0800
committerwouter bolsterlee <wouter@bolsterl.ee>2017-12-25 15:13:45 +0100
commit613cfa3d5ec2262f15eca969e2be5601a403fb32 (patch)
treebfbcdac71af69f59c5e8a30250303fbb4f4cf0d7
parent75ab2b90f3052d824c6eed8d754c2cdf4ba02423 (diff)
downloadhappybase-613cfa3d5ec2262f15eca969e2be5601a403fb32.tar.gz
update user guide for python 3 (#183)
bytes objects have no .format() in python3, so use % formatting.
-rw-r--r--doc/user.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/user.rst b/doc/user.rst
index b526072..7e397e4 100644
--- a/doc/user.rst
+++ b/doc/user.rst
@@ -435,7 +435,7 @@ example, this will result in three round-trips to the server (two batches with
with table.batch(batch_size=1000) as b:
for i in range(1200):
# this put() will result in two mutations (two cells)
- b.put(b'row-%04d'.format(i), {
+ b.put(b'row-%04d' % i, {
b'cf1:col1': b'v1',
b'cf1:col2': b'v2',
})