mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Finish bug fix applied at 58398. I missed a piece, Tal Einat found the error.
This commit is contained in:
		
							parent
							
								
									d4ee167b83
								
							
						
					
					
						commit
						cdadf242ba
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -392,7 +392,7 @@ def writefile(self, filename):
 | 
			
		|||
        text = self.text.get("1.0", "end-1c")
 | 
			
		||||
        if self.eol_convention != "\n":
 | 
			
		||||
            text = text.replace("\n", self.eol_convention)
 | 
			
		||||
        chars = self.encode(self.text.get("1.0", "end-1c"))
 | 
			
		||||
        chars = self.encode(text)
 | 
			
		||||
        try:
 | 
			
		||||
            f = open(filename, "wb")
 | 
			
		||||
            f.write(chars)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue