On Thu, Feb 2, 2017 at 9:40 AM, Vaclav Petras <[email protected]> wrote:
> On Thu, Feb 2, 2017 at 2:47 AM, joerg robl <[email protected]> wrote: > >> ret.append('name={}'.format(tnode.get('name').strip())) >> ValueError: zero length field name in format >> > > > This is Python 2.6 versus 2.7. I'll look into that. > Please (thoroughly) test r70476. https://trac.osgeo.org/grass/changeset/70476 I did the basic changes using the following command: for F in `grep --exclude-dir={.svn,.git,OBJ.*,locale,dist.*,html,latex,build} -IrnE "\{\}.*format" | grep -Ev "\s#" | sed -e "s+\([^:]*\).*+\1+g" | grep -E "\.py$" | uniq`; do sed -ie "s+\({}\)\([^{}]*\.format\)+{0}\2+g" $F; done; and then reviewed the rest using: grep --exclude-dir={.svn,.git,OBJ.*,locale,dist.*,html,latex,build} -IrnE "\{\}" Vaclav
_______________________________________________ grass-user mailing list [email protected] https://lists.osgeo.org/mailman/listinfo/grass-user
