[Python-projects] [pylint] E0611 generated wrongly?

2010-08-15 Thread Nikolaus Rath
Hi, Why does the following code generate an E0611 warning? It seems perfectly alright to me: $ pylint mymodule/bar.py * Module mymodule.bar C0111: 1: Missing docstring C0102: 1: Black listed name "bar" E0611: 4: No name 'foo' in module '' W0611: 4: Unused import bla $ pylint --v

[Python-projects] [pylint] Multiple disable= don't work in configuration file

2010-08-15 Thread Nikolaus Rath
Hi, This works fine: $ pylint --disable=C0111 --disable=C0102 mymodule/bar.py * Module mymodule.bar E0611: 4: No name 'foo' in module '' W0611: 4: Unused import bla But this does not: $ pylint --rcfile rc mymodule/bar.py * Module mymodule.bar C0111: 1: Missing docstr

Re: [Python-projects] Py3k port

2010-08-15 Thread Nicolas Chauvat
Hi Dan, On Sat, Aug 14, 2010 at 01:07:07PM -0700, Dan Stromberg wrote: > What do the owners of the code think about attempting to come up with a > version that runs on (though not _necessarily_ against) 2.6, 2.7 and 3.x > unmodified? This would almost certainly mean this new version would not run

Re: [Python-projects] Py3k port

2010-08-15 Thread Nicolas Chauvat
On Sat, Aug 14, 2010 at 01:13:43PM -0700, Dan Stromberg wrote: > > I've checked out the sources with: > > hg clone http://www.logilab.org/hg/pylint > > hg clone http://www.logilab.org/src/logilab/astng > > hg clone http://www.logilab.org/src/logilab/common > > > > BTW, do all three of these have a

Re: [Python-projects] Py3k port

2010-08-15 Thread Nicolas Chauvat
Hi again, On Sat, Aug 14, 2010 at 06:31:48PM -0700, Dan Stromberg wrote: > Another question: logilab-common seems to be larger than pylint itself. > Does pylint use all of logilab-common? logilab-common seems to hold a > bunch of miscellaneous code. pylint$ rgrep -h 'from logilab.common' * | g

Re: [Python-projects] [pylint] E0611 generated wrongly?

2010-08-15 Thread Eric Deplagne
Hi. Shouldn't there be some class foo in foo.py ? On Sat, 14 Aug 2010 15:54:58 -0400, Nikolaus Rath wrote: > Hi, > > Why does the following code generate an E0611 warning? It seems > perfectly alright to me: > > $ pylint mymodule/bar.py > * Module mymodule.bar > C0111: 1: Missin

Re: [Python-projects] [pylint] E0611 generated wrongly?

2010-08-15 Thread Nikolaus Rath
Hi Eric, No, there is no need for a foo class. I am trying to import the module foo from the package mymodule. Best, Niko On 08/15/2010 02:14 PM, Eric Deplagne wrote: > Shouldn't there be some class foo in foo.py ? > > On Sat, 14 Aug 2010 15:54:58 -0400, Nikolaus Rath wrote: >> Hi, >> >> Why