mirror of
				https://github.com/python/cpython.git
				synced 2025-11-03 23:21:29 +00:00 
			
		
		
		
	Removed some debugging prints: When running user configuration code
from Tk.readprofile(), do not print anything extra to stdout, just run the code.
This commit is contained in:
		
							parent
							
								
									10515b6483
								
							
						
					
					
						commit
						d2a5ad25d5
					
				
					 1 changed files with 0 additions and 4 deletions
				
			
		| 
						 | 
					@ -1530,16 +1530,12 @@ def readprofile(self, baseName, className):
 | 
				
			||||||
        dir = {'self': self}
 | 
					        dir = {'self': self}
 | 
				
			||||||
        exec 'from Tkinter import *' in dir
 | 
					        exec 'from Tkinter import *' in dir
 | 
				
			||||||
        if os.path.isfile(class_tcl):
 | 
					        if os.path.isfile(class_tcl):
 | 
				
			||||||
            print 'source', `class_tcl`
 | 
					 | 
				
			||||||
            self.tk.call('source', class_tcl)
 | 
					            self.tk.call('source', class_tcl)
 | 
				
			||||||
        if os.path.isfile(class_py):
 | 
					        if os.path.isfile(class_py):
 | 
				
			||||||
            print 'execfile', `class_py`
 | 
					 | 
				
			||||||
            execfile(class_py, dir)
 | 
					            execfile(class_py, dir)
 | 
				
			||||||
        if os.path.isfile(base_tcl):
 | 
					        if os.path.isfile(base_tcl):
 | 
				
			||||||
            print 'source', `base_tcl`
 | 
					 | 
				
			||||||
            self.tk.call('source', base_tcl)
 | 
					            self.tk.call('source', base_tcl)
 | 
				
			||||||
        if os.path.isfile(base_py):
 | 
					        if os.path.isfile(base_py):
 | 
				
			||||||
            print 'execfile', `base_py`
 | 
					 | 
				
			||||||
            execfile(base_py, dir)
 | 
					            execfile(base_py, dir)
 | 
				
			||||||
    def report_callback_exception(self, exc, val, tb):
 | 
					    def report_callback_exception(self, exc, val, tb):
 | 
				
			||||||
        """Internal function. It reports exception on sys.stderr."""
 | 
					        """Internal function. It reports exception on sys.stderr."""
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue