[GRASS-dev] Fwd: Re: [GRASS-SVN] r68240 - grass/trunk/scripts/v.report

Huidae Cho grass4u at gmail.com
Mon Apr 11 06:57:12 PDT 2016


Forgot to reply all...

-- 
Sent from my phone
---------- Forwarded message ----------
From: "Huidae Cho" <grass4u at gmail.com>
Date: Apr 11, 2016 9:54 AM
Subject: Re: [GRASS-dev] [GRASS-SVN] r68240 - grass/trunk/scripts/v.report
To: "Martin Landa" <landa.martin at gmail.com>
Cc:

That was a copy+paste from the same script, but I think \r\n is safer than
os.linesep just in case v.to.db prints out \r for whatever reason. But I
know that won't happen in non-Windows anyway, so os.linesep should be fine?

11 scripts use \r\n and 5 use os.linesep. g.extension uses \r\n for reading
and os.linesep for printing.

Huidae
-- 
Sent from my phone
On Apr 10, 2016 7:49 AM, "Martin Landa" <landa.martin at gmail.com> wrote:

> 2016-04-10 13:44 GMT+02:00  <svn_grass at osgeo.org>:
> > +            fields = line.rstrip('\r\n').split('|')
>
> really '\r\n' ? Why not os.linesep? Ma
>
> --
> Martin Landa
> http://geo.fsv.cvut.cz/gwiki/Landa
> http://gismentors.cz/mentors/landa
> _______________________________________________
> grass-dev mailing list
> grass-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/grass-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/grass-dev/attachments/20160411/0f9e235e/attachment.html>


More information about the grass-dev mailing list