Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(14)

Unified Diff: Lib/asyncore.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/ast.py ('k') | Lib/binhex.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/asyncore.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/asyncore.py Mon Jul 25 09:47:18 2011 -0400
@@ -132,8 +132,7 @@
is_w = obj.writable()
if is_r:
r.append(fd)
- # accepting sockets should not be writable
- if is_w and not obj.accepting:
+ if is_w:
w.append(fd)
if is_r or is_w:
e.append(fd)
@@ -180,8 +179,7 @@
flags = 0
if obj.readable():
flags |= select.POLLIN | select.POLLPRI
- # accepting sockets should not be writable
- if obj.writable() and not obj.accepting:
+ if obj.writable():
flags |= select.POLLOUT
if flags:
# Only check for exceptions if object was either readable
« no previous file with comments | « Lib/ast.py ('k') | Lib/binhex.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+