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

Unified Diff: Lib/multiprocessing/connection.py

Issue 10639: reindent.py converts newlines to platform default
Patch Set: Created 8 years, 8 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/logging/__init__.py ('k') | Lib/multiprocessing/heap.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/multiprocessing/connection.py Tue Jul 26 09:37:46 2011 +0300
+++ b/Lib/multiprocessing/connection.py Mon Jul 25 09:47:18 2011 -0400
@@ -149,8 +149,6 @@
self._readable = readable
self._writable = writable
- # XXX should we use util.Finalize instead of a __del__?
-
def __del__(self):
if self._handle is not None:
self._close()
@@ -292,8 +290,8 @@
"""
_buffered = b''
- def _close(self, _CloseHandle=win32.CloseHandle):
- _CloseHandle(self._handle)
+ def _close(self):
+ win32.CloseHandle(self._handle)
def _send_bytes(self, buf):
overlapped = win32.WriteFile(self._handle, buf, overlapped=True)
@@ -378,13 +376,13 @@
"""
if win32:
- def _close(self, _close=win32.closesocket):
- _close(self._handle)
+ def _close(self):
+ win32.closesocket(self._handle)
_write = win32.send
_read = win32.recv
else:
- def _close(self, _close=os.close):
- _close(self._handle)
+ def _close(self):
+ os.close(self._handle)
_write = os.write
_read = os.read
« no previous file with comments | « Lib/logging/__init__.py ('k') | Lib/multiprocessing/heap.py » ('j') | no next file with comments »

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