Skip to content

Commit f193ce9

Browse files
author
y-p
committed
DOC: add omitted default value for closed() in Client example
The library contains calls which do not provide the argument, causing the example to die with an exception.
1 parent ace2765 commit f193ce9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/clienttutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ An example is better than any word so let's have a look at a basic client:
2525
print i
2626
self.send("*" * i)
2727
28-
def closed(self, code, reason):
28+
def closed(self, code, reason=None):
2929
print "Closed down", code, reason
3030
3131
def received_message(self, m):

0 commit comments

Comments
 (0)