Skip to content

Commit f6f2d65

Browse files
committed
Fixed doc of function url
1 parent 7f39c42 commit f6f2d65

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

‎validators/url.py‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,14 @@ def url(value, public=False):
6262
Examples::
6363
6464
>>> url('http://foobar.dk')
65+
True
66+
6567
>>> url('http://10.0.0.1')
6668
True
6769
6870
>>> url('http://foobar.d')
71+
ValidationFailure(func=url, ...)
72+
6973
>>> url('http://10.0.0.1', public=True)
7074
ValidationFailure(func=url, ...)
7175

0 commit comments

Comments
 (0)