diff -r e43e4e7e9ec0 -r f9090d1a0730 VirtualMailManager/ext/Postconf.py --- a/VirtualMailManager/ext/Postconf.py Tue Sep 16 05:55:54 2008 +0000 +++ b/VirtualMailManager/ext/Postconf.py Tue Sep 16 20:03:09 2008 +0000 @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# Copyright 2007-2008 VEB IT +# Copyright 2008 VEB IT # See COPYING for distribution information. # $Id$ @@ -30,8 +30,7 @@ """ self.__bin = postconf_bin self.__val = '' - re.compile(RE_PC_PARAMS) - re.compile(RE_PC_VARIABLES) + self.__varFinder = re.compile(RE_PC_VARIABLES) def read(self, parameter, expand_vars=True): """Returns the parameters value. @@ -56,7 +55,7 @@ def __expandVars(self): while True: - pvars = set(re.findall(RE_PC_VARIABLES, self.__val)) + pvars = set(self.__varFinder.findall(self.__val)) pvars_len = len(pvars) if pvars_len < 1: break