Skip to content

Commit

Permalink
Fix sample data in set_and_get example
Browse files Browse the repository at this point in the history
  • Loading branch information
uglide committed May 17, 2023
1 parent f06884d commit 78b12f2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions doctests/string_set_get.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,16 @@
r = redis.Redis(host="localhost", port=6379, db=0, decode_responses=True)
# HIDE_END

res = r.set("foo", "bar")
res = r.set("bike:1", "Process 134")
print(res)
# >>> True
# REMOVE_START
assert res
# REMOVE_END

res = r.get("foo")
res = r.get("bike:1")
print(res)
# >>> "bar"
# >>> "Process 134"
# REMOVE_START
assert res == "bar"
assert res == "Process 134"
# REMOVE_END

0 comments on commit 78b12f2

Please sign in to comment.