mirror of
				https://github.com/python/cpython.git
				synced 2025-10-28 20:25:04 +00:00 
			
		
		
		
	Re-raise the Res.Error if the file doesn't exist.
This commit is contained in:
		
							parent
							
								
									2cce33f3bd
								
							
						
					
					
						commit
						d21c9f48fa
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -91,6 +91,8 @@ def open_pathname(pathname): | |||
| 			# Finally try decoding an AppleSingle file | ||||
| 			pathname = _decode(pathname) | ||||
| 			refno = Res.FSOpenResourceFile(pathname, u'', 1) | ||||
| 		else: | ||||
| 			raise | ||||
| 	return refno | ||||
| 	 | ||||
| def _decode(pathname): | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Jack Jansen
						Jack Jansen