mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Widen test to support unicode.
This commit is contained in:
		
							parent
							
								
									e8e4e1456c
								
							
						
					
					
						commit
						9e6bf1a8ee
					
				
					 2 changed files with 2 additions and 2 deletions
				
			
		| 
						 | 
				
			
			@ -1265,7 +1265,7 @@ def __init__(self, shell, tags, encoding=None):
 | 
			
		|||
        self.encoding = encoding
 | 
			
		||||
 | 
			
		||||
    def write(self, s):
 | 
			
		||||
        if not isinstance(s, str):
 | 
			
		||||
        if not isinstance(s, basestring):
 | 
			
		||||
            raise TypeError('must be str, not ' + type(s).__name__)
 | 
			
		||||
        self.shell.write(s, self.tags)
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue