pylint -- should I just ignore it sometimes?

Terry Reedy tjreedy at udel.edu
Tue Oct 19 18:28:42 EDT 2010


On 10/19/2010 5:43 PM, Seebs wrote:

> That reminds me, though.  Speaking of deprecation, I have:
> 	from string import Template
> (see PEP 292 or so?), and pylint says "Uses of a deprecated module 'string'",
> but I don't know of a way to get Template except by doing that.

A buggy PyLint is passing on bad (obsolete, deprecated ;-) info: In 3.1

 >>> import string
 >>> dir(string)
['Formatter', 'Template', '_TemplateMetaclass', '__builtins__', 
'__doc__', '__file__', '__name__', '__package__', '_multimap', '_re', 
'ascii_letters', 'ascii_lowercase', 'ascii_uppercase', 'capwords', 
'digits', 'hexdigits', 'maketrans', 'octdigits', 'printable', 
'punctuation', 'whitespace']

-- 
Terry Jan Reedy




More information about the Python-list mailing list