Email Re: [Python-projects] Check imported modules attributes

from
Sylvain Thenault <syt at logilab dot fr>
to
subject
Re: [Python-projects] Check imported modules attributes
date
2005/06/21 18:22
On Tuesday 21 June à 17:33, Alexandre wrote:
> On Tue, Jun 21, 2005 at 10:19:06AM +0200, Sylvain Thénault wrote:
> > 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. 

hum, pylint is already doing so...

-- 
Sylvain Thénault                               LOGILAB, Paris (France).

http://www.logilab.com   http://www.logilab.fr  http://www.logilab.org

_______________________________________________
Python-Projects mailing list
Python-Projects@lists.logilab.org
http://lists.logilab.org/mailman/listinfo/python-projects


is a reply to