Exemple #1
0
 def _interpolate(self, section, option, rawval, vars):
     # special overloading of SafeConfigParser._interpolate:
     # do not attempt to interpolate if the string is (double-)quoted
     if is_quoted(rawval):
         return rawval
     # cannot use 'super' here as ConfigParser is outdated
     return SafeConfigParser._interpolate(self, section, option, rawval,
                                          vars)
Exemple #2
0
 def _interpolate(self, section, option, rawval, vars):
     if not isinstance(rawval, str):
         return rawval
     return SafeConfigParser._interpolate(self, section,
                                                       option, rawval, vars)