commit | 103a6d6cd6eb5bf894890f0126547e64ff20a5c9 | [log] [tgz] |
---|---|---|
author | Giampaolo RodolĂ <g.rodola@gmail.com> | Fri Feb 25 22:21:22 2011 +0000 |
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | Fri Feb 25 22:21:22 2011 +0000 |
tree | f563f4acf086ebf336d7d0319ee0070f5bc92770 | |
parent | 0bd4deba383b1c7f05a4e0c94f1d4b96050a1308 [diff] [blame] |
Issue 11177: asyncore's create_socket() arguments can now be omitted.
diff --git a/Lib/asyncore.py b/Lib/asyncore.py index a277bdd..aaa9e7c 100644 --- a/Lib/asyncore.py +++ b/Lib/asyncore.py
@@ -287,7 +287,7 @@ del map[fd] self._fileno = None - def create_socket(self, family, type): + def create_socket(self, family=socket.AF_INET, type=socket.SOCK_STREAM): self.family_and_type = family, type sock = socket.socket(family, type) sock.setblocking(0)