mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	Use "is" to test type objects, not "==".
This commit is contained in:
		
							parent
							
								
									f955412130
								
							
						
					
					
						commit
						94e7bb7dd6
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -48,7 +48,7 @@ def finalize_options (self):
 | 
			
		|||
    def run (self):
 | 
			
		||||
        self.mkpath(self.install_dir)
 | 
			
		||||
        for f in self.data_files:
 | 
			
		||||
            if type(f) == StringType:
 | 
			
		||||
            if type(f) is StringType:
 | 
			
		||||
                # it's a simple file, so copy it
 | 
			
		||||
                f = convert_path(f)
 | 
			
		||||
                if self.warn_dir:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue