[Python-projects] Check imported modules attributes
AlF at logilab.fr
Tue Jun 21 17:33:44 CEST 2005
On Tue, Jun 21, 2005 at 10:19:06AM +0200, Sylvain Thénault wrote:
> On Monday 20 June à 20:02, amaury.forgeotdarc at 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
Alexandre Fayolle LOGILAB, Paris (France).
http://www.logilab.com http://www.logilab.fr http://www.logilab.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: Digital signature
Url : http://lists.logilab.org/pipermail/python-projects/attachments/20050621/b734cba8/attachment.pgp
More information about the Python-Projects