From 9d15f612cb44fc130ab0c9b139960ca0fdc78705 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20H=C3=BCwe?= Date: Fri, 28 Nov 2008 16:53:07 +0000 Subject: [PATCH] - this is escaping isn't needed. If we don't want to use interpolation we should call the appropriate methods with correct parameters. (luckily nobody except Peter noticed this issue because it resulted in a 0byte ~/.oscrc) --- osc/OscConfigParser.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/osc/OscConfigParser.py b/osc/OscConfigParser.py index 1a738ff2..90fa94e5 100644 --- a/osc/OscConfigParser.py +++ b/osc/OscConfigParser.py @@ -168,8 +168,6 @@ class OptionLine(Line): def format(self, line): mo = ConfigParser.ConfigParser.OPTCRE.match(line.strip()) key, val = mo.group('option', 'value') - # escape all occurrences of '%' otherwise string formatting will fail - line = line.replace('%', '%%') self.frmt = line.replace(key.strip(), '%s', 1) pos = val.find(' ;') if pos >= 0: