mirror of
				https://github.com/python/cpython.git
				synced 2025-10-30 21:21:22 +00:00 
			
		
		
		
	Merged revisions 73250 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk ........ r73250 | benjamin.peterson | 2009-06-05 14:09:28 -0500 (Fri, 05 Jun 2009) | 1 line only test for named pipe when os.stat doesn't raise #6209 ........
This commit is contained in:
		
							parent
							
								
									ef3e71faac
								
							
						
					
					
						commit
						c0d98aa5c0
					
				
					 1 changed files with 4 additions and 3 deletions
				
			
		|  | @ -58,6 +58,7 @@ def copyfile(src, dst): | ||||||
|         except OSError: |         except OSError: | ||||||
|             # File most likely does not exist |             # File most likely does not exist | ||||||
|             pass |             pass | ||||||
|  |         else: | ||||||
|             # XXX What about other special files? (sockets, devices...) |             # XXX What about other special files? (sockets, devices...) | ||||||
|             if stat.S_ISFIFO(st.st_mode): |             if stat.S_ISFIFO(st.st_mode): | ||||||
|                 raise SpecialFileError("`%s` is a named pipe" % fn) |                 raise SpecialFileError("`%s` is a named pipe" % fn) | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Benjamin Peterson
						Benjamin Peterson