From 237782469139a91d2252d0dcbb2fca800274d5a5 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 10 Jul 2010 14:37:23 +0200 Subject: [PATCH] strings are unmutable objects --- weboob/tools/application/results.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/weboob/tools/application/results.py b/weboob/tools/application/results.py index 0abc1677..acd32363 100644 --- a/weboob/tools/application/results.py +++ b/weboob/tools/application/results.py @@ -69,9 +69,9 @@ class Results(object): class ResultsCondition(object): def __init__(self, condition_str): - condition_str.replace('OR', 'or') - condition_str.replace('AND', 'and') - condition_str.replace('NOT', 'not') + condition_str = condition_str.replace('OR', 'or') \ + .replace('AND', 'and') \ + .replace('NOT', 'not') or_list = [] try: for _or in condition_str.split('or'):