[Python-projects] pylint false positive: More than one statement on a single line

Maarten ter Huurne maarten at treewalker.org
Thu Mar 26 00:01:45 CET 2009


Hi,

The new pylint works well on Python 2.6 now.
Thanks for fixing it so quickly!


I did encounter this false positive, which I think is new, although I'm not 
100% sure about that.

===
try:
	pass
except IOError:
	pass
finally:
	pass
===
C0321:  1: More than one statement on a single line

The message is only output if the "try" statement has both an "except" and a 
"finally" clause.

pylint 0.18.0,
astng 0.19.0, common 0.39.0
Python 2.6 (r26:66714, Feb  3 2009, 20:49:49)
[GCC 4.3.2 [gcc-4_3-branch revision 141291]]

Bye,
		Maarten



More information about the Python-Projects mailing list