mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 05:31:20 +00:00 
			
		
		
		
	Fix small exception typos in Lib (#818)
This commit is contained in:
		
							parent
							
								
									f8beb9831a
								
							
						
					
					
						commit
						1e73dbbc29
					
				
					 2 changed files with 3 additions and 3 deletions
				
			
		|  | @ -766,7 +766,7 @@ def truncate(self, pos=None): | ||||||
| 
 | 
 | ||||||
|     def flush(self): |     def flush(self): | ||||||
|         if self.closed: |         if self.closed: | ||||||
|             raise ValueError("flush of closed file") |             raise ValueError("flush on closed file") | ||||||
|         self.raw.flush() |         self.raw.flush() | ||||||
| 
 | 
 | ||||||
|     def close(self): |     def close(self): | ||||||
|  | @ -1214,7 +1214,7 @@ def flush(self): | ||||||
| 
 | 
 | ||||||
|     def _flush_unlocked(self): |     def _flush_unlocked(self): | ||||||
|         if self.closed: |         if self.closed: | ||||||
|             raise ValueError("flush of closed file") |             raise ValueError("flush on closed file") | ||||||
|         while self._write_buf: |         while self._write_buf: | ||||||
|             try: |             try: | ||||||
|                 n = self.raw.write(self._write_buf) |                 n = self.raw.write(self._write_buf) | ||||||
|  |  | ||||||
|  | @ -149,7 +149,7 @@ def handle(self): | ||||||
| 
 | 
 | ||||||
|     def fileno(self): |     def fileno(self): | ||||||
|         if self._handle is None: |         if self._handle is None: | ||||||
|             raise ValueError("I/O operatioon on closed pipe") |             raise ValueError("I/O operation on closed pipe") | ||||||
|         return self._handle |         return self._handle | ||||||
| 
 | 
 | ||||||
|     def close(self, *, CloseHandle=_winapi.CloseHandle): |     def close(self, *, CloseHandle=_winapi.CloseHandle): | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jim Fasarakis-Hilliard
						Jim Fasarakis-Hilliard