mirror of
				https://github.com/python/cpython.git
				synced 2025-10-31 13:41:24 +00:00 
			
		
		
		
	Fix by Chris Petrilli (to his own code) to limit the number of
iterations looking for expansions to 10.
This commit is contained in:
		
							parent
							
								
									561df24437
								
							
						
					
					
						commit
						72ce85823c
					
				
					 1 changed files with 3 additions and 1 deletions
				
			
		|  | @ -209,7 +209,9 @@ def get(self, section, option, raw=0, vars=None): | |||
|             return rawval | ||||
| 
 | ||||
|         value = rawval                  # Make it a pretty variable name | ||||
|         while 1:                        # Loop through this until it's done | ||||
|         depth = 0                        | ||||
|         while depth < 10:               # Loop through this until it's done | ||||
|             depth = depth + 1 | ||||
|             if not string.find(value, "%("): | ||||
|                 try: | ||||
|                     value = value % d | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Guido van Rossum
						Guido van Rossum