diff options
Diffstat (limited to 'Lib/dos-8x3/configpa.py')
-rw-r--r-- | Lib/dos-8x3/configpa.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/dos-8x3/configpa.py b/Lib/dos-8x3/configpa.py index bc646e4..dd8b6d8 100644 --- a/Lib/dos-8x3/configpa.py +++ b/Lib/dos-8x3/configpa.py @@ -209,7 +209,9 @@ class ConfigParser: 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 |