Loading src/yapsut/template_subs.py +4 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,9 @@ def discoverKeys(template,kbraeket,verbose=False) : except : raise Exception('file ended while scanning end of keyword') if verbose : print(i1,i2) out.append(template[i1:i2+1]) kkk=template[i1:i2+1] if not kkk in out : out.append(kkk) i1=i2+1 return out Loading Loading @@ -108,7 +110,7 @@ class templateFiller: if not self.isfilled() : raise Exception('Error, not all the keywords are filled') # tout=template tout=self._t for ik,k in enumerate(self._k) : keyName=self._kfill[ik] tout=tout.replace(keyName,self._d[k]) Loading Loading
src/yapsut/template_subs.py +4 −2 Original line number Diff line number Diff line Loading @@ -23,7 +23,9 @@ def discoverKeys(template,kbraeket,verbose=False) : except : raise Exception('file ended while scanning end of keyword') if verbose : print(i1,i2) out.append(template[i1:i2+1]) kkk=template[i1:i2+1] if not kkk in out : out.append(kkk) i1=i2+1 return out Loading Loading @@ -108,7 +110,7 @@ class templateFiller: if not self.isfilled() : raise Exception('Error, not all the keywords are filled') # tout=template tout=self._t for ik,k in enumerate(self._k) : keyName=self._kfill[ik] tout=tout.replace(keyName,self._d[k]) Loading