<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Feb 2, 2017 at 9:40 AM, Vaclav Petras <span dir="ltr"><<a href="mailto:wenzeslaus@gmail.com" target="_blank">wenzeslaus@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="m_7185514734548129845gmail-"><div class="gmail_extra"><div class="gmail_quote">On Thu, Feb 2, 2017 at 2:47 AM, joerg robl <span dir="ltr"><<a href="mailto:joerg.robl@gmail.com" target="_blank">joerg.robl@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div>    ret.append('name={}'.format(tn<wbr>ode.get('name').strip()))<br>ValueError: zero length field name in format</div></blockquote></div><br><br></div></span><div class="gmail_extra">This is Python 2.6 versus 2.7. I'll look into that.</div></blockquote></div><br></div><div class="gmail_extra">Please (thoroughly) test r70476.<br><br><a href="https://trac.osgeo.org/grass/changeset/70476" target="_blank">https://trac.osgeo.org/grass/<wbr>changeset/70476</a><br><br></div><div class="gmail_extra">I did the basic changes using the following command:<br><br>for F in `grep --exclude-dir={.svn,.git,OBJ.*<wbr>,locale,dist.*,html,latex,<wbr>build} -IrnE "\{\}.*format" | grep -Ev "\s#" | sed -e "s+\([^:]*\).*+\1+g" | grep -E "\.py$" | uniq`; do sed -ie "s+\({}\)\([^{}]*\.format\)+{<wbr>0}\2+g" $F; done;<br><br> and then reviewed the rest using:<br><br>grep --exclude-dir={.svn,.git,OBJ.*<wbr>,locale,dist.*,html,latex,<wbr>build} -IrnE "\{\}"<br><br></div><div class="gmail_extra">Vaclav<br></div></div>