mirror of
				https://github.com/python/cpython.git
				synced 2025-11-04 07:31:38 +00:00 
			
		
		
		
	remove debugging rubish
This commit is contained in:
		
							parent
							
								
									266e454866
								
							
						
					
					
						commit
						b9e7c01294
					
				
					 1 changed files with 0 additions and 3 deletions
				
			
		| 
						 | 
					@ -123,15 +123,12 @@ def updatecache(filename, module_globals=None):
 | 
				
			||||||
                except os.error:
 | 
					                except os.error:
 | 
				
			||||||
                    pass
 | 
					                    pass
 | 
				
			||||||
        else:
 | 
					        else:
 | 
				
			||||||
            # No luck
 | 
					 | 
				
			||||||
##          print '*** Cannot stat', filename, ':', msg
 | 
					 | 
				
			||||||
            return []
 | 
					            return []
 | 
				
			||||||
    try:
 | 
					    try:
 | 
				
			||||||
        fp = open(fullname, 'rU')
 | 
					        fp = open(fullname, 'rU')
 | 
				
			||||||
        lines = fp.readlines()
 | 
					        lines = fp.readlines()
 | 
				
			||||||
        fp.close()
 | 
					        fp.close()
 | 
				
			||||||
    except IOError, msg:
 | 
					    except IOError, msg:
 | 
				
			||||||
##      print '*** Cannot open', fullname, ':', msg
 | 
					 | 
				
			||||||
        return []
 | 
					        return []
 | 
				
			||||||
    if lines and not lines[-1].endswith('\n'):
 | 
					    if lines and not lines[-1].endswith('\n'):
 | 
				
			||||||
        lines[-1] += '\n'
 | 
					        lines[-1] += '\n'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue