mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	remove mentions of socket.ssl in comments
This commit is contained in:
		
							parent
							
								
									c459264f5b
								
							
						
					
					
						commit
						910fa59595
					
				
					 1 changed files with 1 additions and 3 deletions
				
			
		|  | @ -1165,7 +1165,6 @@ def read(self, size): | ||||||
| 
 | 
 | ||||||
|         def readline(self): |         def readline(self): | ||||||
|             """Read line from remote.""" |             """Read line from remote.""" | ||||||
|             # NB: socket.ssl needs a "readline" method, or perhaps a "makefile" method. |  | ||||||
|             line = [] |             line = [] | ||||||
|             while 1: |             while 1: | ||||||
|                 char = self.sslobj.read(1) |                 char = self.sslobj.read(1) | ||||||
|  | @ -1175,7 +1174,6 @@ def readline(self): | ||||||
| 
 | 
 | ||||||
|         def send(self, data): |         def send(self, data): | ||||||
|             """Send data to remote.""" |             """Send data to remote.""" | ||||||
|             # NB: socket.ssl needs a "sendall" method to match socket objects. |  | ||||||
|             bytes = len(data) |             bytes = len(data) | ||||||
|             while bytes > 0: |             while bytes > 0: | ||||||
|                 sent = self.sslobj.write(data) |                 sent = self.sslobj.write(data) | ||||||
|  | @ -1201,7 +1199,7 @@ def socket(self): | ||||||
|         def ssl(self): |         def ssl(self): | ||||||
|             """Return SSLObject instance used to communicate with the IMAP4 server. |             """Return SSLObject instance used to communicate with the IMAP4 server. | ||||||
| 
 | 
 | ||||||
|             ssl = <instance>.socket.ssl() |             ssl = ssl.sslsocket(<instance>.socket) | ||||||
|             """ |             """ | ||||||
|             return self.sslobj |             return self.sslobj | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Bill Janssen
						Bill Janssen