diff options
author | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-02-25 22:21:22 (GMT) |
---|---|---|
committer | Giampaolo RodolĂ <g.rodola@gmail.com> | 2011-02-25 22:21:22 (GMT) |
commit | 103a6d6cd6eb5bf894890f0126547e64ff20a5c9 (patch) | |
tree | f563f4acf086ebf336d7d0319ee0070f5bc92770 /Lib/asyncore.py | |
parent | 0bd4deba383b1c7f05a4e0c94f1d4b96050a1308 (diff) | |
download | cpython-103a6d6cd6eb5bf894890f0126547e64ff20a5c9.zip cpython-103a6d6cd6eb5bf894890f0126547e64ff20a5c9.tar.gz cpython-103a6d6cd6eb5bf894890f0126547e64ff20a5c9.tar.bz2 |
Issue 11177: asyncore's create_socket() arguments can now be omitted.
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r-- | Lib/asyncore.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ class dispatcher: 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) |