def string(self, key, default=None): par = c_rsf.sf_getstring(key) if par: return par elif default: return default else: return None
def string(self,key,default=None): par = c_rsf.sf_getstring(key) if par: return par elif default: return default else: return None
def string(self, key, default=None): if _swig_: if python2: # c function only knows utf-8 (ascii). translate the unicode key = key.encode('utf-8') val = c_rsf.sf_getstring(key) else: val = self.pars.getstring(key) if val: return val elif default: return default else: return None