Kaydet (Commit) 72ce8582 authored tarafından Guido van Rossum's avatar Guido van Rossum

Fix by Chris Petrilli (to his own code) to limit the number of

iterations looking for expansions to 10.
üst 561df244
...@@ -209,7 +209,9 @@ class ConfigParser: ...@@ -209,7 +209,9 @@ class ConfigParser:
return rawval return rawval
value = rawval # Make it a pretty variable name 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, "%("): if not string.find(value, "%("):
try: try:
value = value % d value = value % d
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment