[GRASS-dev] [Issue] String formatting issue

Martin Landa landa.martin at gmail.com
Mon Jun 4 14:00:19 PDT 2018


Hi,

2018-06-04 19:52 GMT+02:00 Sanjeet <edu.sanjeet at gmail.com>:
> Yes, the .format() style should be followed in most cases. I could be
> wrong but I guess the old style has been used to support older
> versions of Python. But it seems we can use the 'format' style since
> we are only keeping support for Python 2.7 (or 2.6 if possible).

yes, please use format(). And the old style (%) should be replaced by format().

Martin

-- 
Martin Landa
http://geo.fsv.cvut.cz/gwiki/Landa
http://gismentors.cz/mentors/landa


More information about the grass-dev mailing list