Skip to content

Commit 86cbec8

Browse files
authored
Fix example for python3 + version matrix tests in CI (#93)
1 parent 324e147 commit 86cbec8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ client.add_document(
6666
res = client.search("search engine")
6767

6868
# the result has the total number of results, and a list of documents
69-
print res.total # "1"
70-
print res.docs[0].title
69+
print(res.total) # "2"
70+
print(res.docs[0].title) # "RediSearch"
7171

7272
# Searching with complex parameters:
7373
q = Query("search engine").verbatim().no_content().with_scores().paging(0, 5)
@@ -116,4 +116,4 @@ Finally, invoke the virtual environment and run the tests:
116116
. ./venv3/bin/activate
117117
REDIS_PORT=6379 python test/test.py
118118
REDIS_PORT=6379 python test/test_builder.py
119-
```
119+
```

0 commit comments

Comments
 (0)