Skip to content

Commit eb7aa01

Browse files
committed
fix doctest
1 parent 05b8385 commit eb7aa01

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/db.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,13 +284,13 @@ def sqlors(left, lst):
284284
for each item in the lst.
285285
286286
>>> sqlors('foo = ', [])
287-
<sql: '2+2=5'>
287+
<sql: '1=2'>
288288
>>> sqlors('foo = ', [1])
289289
<sql: 'foo = 1'>
290290
>>> sqlors('foo = ', 1)
291291
<sql: 'foo = 1'>
292292
>>> sqlors('foo = ', [1,2,3])
293-
<sql: '(foo = 1 OR foo = 2 OR foo = 3)'>
293+
<sql: '(foo = 1 OR foo = 2 OR foo = 3 OR 1=2)'>
294294
"""
295295
if isinstance(lst, iters):
296296
lst = list(lst)

0 commit comments

Comments
 (0)