from
Alexandre <alf at logilab dot fr>
to
Python-Projects <python-projects at lists dot logilab dot org>
subject
Re: [Python-projects] Check imported modules attributes
date
On Tue, Jun 21, 2005 at 10:19:06AM +0200, Sylvain Thénault wrote:2005/06/21 17:33
> On Monday 20 June à 20:02, amaury.forgeotdarc@ubitrade.com wrote:
> >
> > > > - Remove "Line too long" warning for multiline strings.
> > > > It's really a noise for docstrings, and is almost the only
> > > > message when you run PyLint over itself. ;-)
> > >
> > > Hum, I personnaly prefer keeping it as it is. On good days, I
> > > even try > to wrap docstrings to 72 chars
> > > (and 80 for code and comments).
> >
> > Oh, I see the problem.
> > I'm just parsing a file with Unix end-of-lines on a Windows
> > machine. (PyLint's own code, if you want to know)
> > The checks use os.linesep="\r\n" to split lines ending
> > with "\n". Hence the messages.
>
> gasp. This sounds like a bug...
You way want to look at the universal newline feature of Python,
depending on how the files are opened in pylint: using mode "U" to open a
file object should convert all kind of newlines to \n (requires
python >= 2.2). Check the builtin file() function for more information
on this.
--
Alexandre Fayolle LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
